|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.browsecode.helpers.menus.Order<T>
public class Order<T>
Field Summary | |
---|---|
static java.lang.String |
ALL_OTHER_ITEMS
|
Constructor Summary | |
---|---|
Order(java.util.Comparator<T> comparator,
java.util.Vector<T> order)
We guarantee that Comparator.compare() will always be called like this: Comparator.compare([itemToInsert or item already inserted], item from getOrder()) -- to make your implementation life easier. |
Method Summary | |
---|---|
int |
getInsertIndex(java.util.Vector<T> insertInto,
T insertItem)
|
java.util.Vector |
getOrder()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ALL_OTHER_ITEMS
Constructor Detail |
---|
public Order(java.util.Comparator<T> comparator, java.util.Vector<T> order)
comparator
- order
- Method Detail |
---|
public java.util.Vector getOrder()
public int getInsertIndex(java.util.Vector<T> insertInto, T insertItem)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |