|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.util.KeySortedLinkedList
List of elements sorted by a key which is not the element itself.
Note: this class may change in the future, or by replaced by
a TreeMap
-based solution.
Constructor Summary | |
KeySortedLinkedList()
|
Method Summary | |
boolean |
contains(java.lang.Comparable x)
Checks if the list contains a certain element, or better its key. |
KeySortedLinkedListIterator |
find(java.lang.Comparable x)
|
KeySortedLinkedListIterator |
findPrevious(java.lang.Comparable x)
|
KeySortedLinkedListIterator |
first()
Retrieves an iterator that points to the first element or to null for an empty list. |
KeySortedLinkedListIterator |
getAt(int index)
Returns the object stored at a determined zero-based index in case it exists, null otherwise. |
void |
insert(java.lang.Comparable x,
java.lang.Object o)
Inserting an element in the list by using a key. |
boolean |
isEmpty()
Is the list empty? |
void |
remove(java.lang.Comparable x)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public KeySortedLinkedList()
Method Detail |
public boolean isEmpty()
public KeySortedLinkedListIterator first()
public void insert(java.lang.Comparable x, java.lang.Object o)
x
- Key to be used to find the right location.o
- Object to be inserted.public boolean contains(java.lang.Comparable x)
x
-
public java.lang.String toString()
public KeySortedLinkedListIterator find(java.lang.Comparable x)
public KeySortedLinkedListIterator findPrevious(java.lang.Comparable x)
public void remove(java.lang.Comparable x)
public KeySortedLinkedListIterator getAt(int index)
index
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |