E - the element typepublic class IndexableSet<E> extends InsertionOrderSet<E>
IndexableSet| Constructor and Description |
|---|
IndexableSet() |
| Modifier and Type | Method and Description |
|---|---|
E |
get(int index)
Gets the element of the given index
Note: use with caution |
int |
getIndex(E element)
Gets the index of the given element
|
add, setOfclear, clone, contains, isEmpty, iterator, remove, sizeaddAll, containsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitpublic E get(int index)
index - the indexIndexOutOfBoundsExceptionjava.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())public int getIndex(E element)
element - the element