|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
org.apache.commons.collections.list.TreeList
edu.cuny.tac.aa.util.SortedTreeList<M>
public class SortedTreeList<M extends java.lang.Comparable>
A tree-based sorted list.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
SortedTreeList(java.lang.String name)
|
Method Summary | |
---|---|
boolean |
add(M o)
adds o into the list maintaining its sorted nature. |
int |
indexOfIfAdded(int b,
int e,
M o)
determines its index if an object is added into the list |
int |
indexOfIfAdded(M o)
|
Methods inherited from class org.apache.commons.collections.list.TreeList |
---|
add, clear, contains, get, indexOf, iterator, listIterator, listIterator, remove, set, size, toArray |
Methods inherited from class java.util.AbstractList |
---|
add, addAll, equals, hashCode, lastIndexOf, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray |
Constructor Detail |
---|
public SortedTreeList(java.lang.String name)
Method Detail |
---|
public boolean add(M o)
o
into the list maintaining its sorted nature.
o
-
public int indexOfIfAdded(M o)
public int indexOfIfAdded(int b, int e, M o)
b
- e
- o
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |