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, setOfspliteratorclear, clone, contains, isEmpty, iterator, remove, sizeequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streampublic E get(int index)
index - the indexIndexOutOfBoundsExceptionIndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())public int getIndex(E element)
element - the elementCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.