|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.ArrayList | +--de.jface.util.SortedList
Class SortedList
of project RemotePostIt.
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
SortedList()
|
Method Summary | |
java.lang.Object |
get(java.lang.Object o)
Returns the given object from the list. |
java.lang.Object |
get(java.lang.Object o,
java.util.Comparator c)
|
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
Constructor Detail |
public SortedList()
Method Detail |
public java.lang.Object get(java.lang.Object o)
Collections.binarySearch(List, Object)
method. If the list
contains an object which returns 0 in the compareTo()
method, then the Object that is already stored in the list is returned.
Otherwise the parameter o is inserted into the list so that the order of the list remains intact. Then the same object will be returned.
o
- The object that is used to look up the list. Note that
the object o and all the objects in the list must implement the
Comparable
interface.
+ @return either the parameter, if it doesn't already exist in the list or
the instance from the list.public java.lang.Object get(java.lang.Object o, java.util.Comparator c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |