|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.util.KeySortedLinkedList
KeySortedList. The new implementation fits better in the Java
Collection framework, and is also built on top of TreeMap, which
should provides O(log(n)) performance instead of O(n) for most operations.
List of elements sorted by a key which is not the element itself.
| Constructor Summary | |
KeySortedLinkedList()
Deprecated. Replaced by KeySortedList. |
|
| Method Summary | |
boolean |
contains(java.lang.Comparable x)
Deprecated. Replaced by KeySortedList.containsKey(java.lang.Comparable). |
KeySortedLinkedListIterator |
find(java.lang.Comparable x)
Deprecated. Replaced by KeySortedList.listIterator(Comparable), or
KeySortedList.first(java.lang.Comparable) if only a single value is wanted. |
KeySortedLinkedListIterator |
findPrevious(java.lang.Comparable x)
Deprecated. Replaced by KeySortedList.listIterator(Comparable) folllowed by
calls to ListIterator.previous(). |
KeySortedLinkedListIterator |
first()
Deprecated. Replaced by AbstractSequentialList.iterator(). |
KeySortedLinkedListIterator |
getAt(int index)
Deprecated. Replaced by AbstractSequentialList.get(int). |
void |
insert(java.lang.Comparable x,
java.lang.Object o)
Deprecated. Replaced by KeySortedList.add(java.lang.Comparable, java.lang.Object). The new method name is
instead of for consistency with other methods
in the List interface. |
boolean |
isEmpty()
Deprecated. Replaced by AbstractCollection.isEmpty(). |
void |
remove(java.lang.Comparable x)
Deprecated. Replaced by KeySortedList.removeAll(java.lang.Comparable). |
java.lang.String |
toString()
Deprecated. Replaced by AbstractCollection.toString(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public KeySortedLinkedList()
KeySortedList.
| Method Detail |
public boolean isEmpty()
AbstractCollection.isEmpty().
public KeySortedLinkedListIterator first()
AbstractSequentialList.iterator().
public void insert(java.lang.Comparable x,
java.lang.Object o)
KeySortedList.add(java.lang.Comparable, java.lang.Object). The new method name is
instead of for consistency with other methods
in the List interface.
x - Key to be used to find the right location.o - Object to be inserted.public boolean contains(java.lang.Comparable x)
KeySortedList.containsKey(java.lang.Comparable).
public java.lang.String toString()
AbstractCollection.toString().
public KeySortedLinkedListIterator find(java.lang.Comparable x)
KeySortedList.listIterator(Comparable), or
KeySortedList.first(java.lang.Comparable) if only a single value is wanted.
public KeySortedLinkedListIterator findPrevious(java.lang.Comparable x)
KeySortedList.listIterator(Comparable) folllowed by
calls to ListIterator.previous().
public void remove(java.lang.Comparable x)
KeySortedList.removeAll(java.lang.Comparable).
public KeySortedLinkedListIterator getAt(int index)
AbstractSequentialList.get(int).
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||