E - type of elements stored in the listpublic class KeyList<E> extends KeyListImpl<E>
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyList.Builder<E>
Builder to construct KeyList instances.
|
| Modifier and Type | Method and Description |
|---|---|
KeyList<E> |
copy()
Returns a shallow copy of this GapList instance
(the new list will contain the same elements as the source list, i.e. the elements themselves are not copied).
|
KeyList<E> |
crop()
Returns a copy this list but without elements.
|
GapList<E> |
getAll(E elem)
Returns all equal elements.
|
int |
getCount(E elem)
Returns the number of equal elements.
|
java.util.Set<E> |
getDistinct()
Returns all distinct elements in the same order as in the collection.
|
E |
put(E elem)
Adds or replaces element.
|
GapList<E> |
removeAll(E elem)
Removes all equal elements.
|
add, add, asSet, binarySearch, capacity, clear, clone, contains, containsKey, create, create, create, create, ensureCapacity, get, getAllByKey, getByKey, getCountByKey, getDistinctKeys, indexOf, indexOfKey, indexOfKey, set, size, sortaddAll, addAll, addAll, addAll, addAll, addAll, addFirst, addLast, binarySearch, containsAll, containsAny, copy, copy, descendingIterator, element, EMPTY, equals, fill, fill, getAll, getArray, getFirst, getLast, hashCode, init, init, init, init, init, isEmpty, iterator, lastIndexOf, listIterator, listIterator, move, move, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, remove, removeAll, removeAll, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, resize, retainAll, retainAll, reverse, reverse, rotate, rotate, setAll, setAll, setAll, sort, swap, swap, toArray, toArray, toArray, toString, trimToSize, unmodifiableListpublic KeyList<E> copy()
GapListcopy in class KeyListImpl<E>GapList.clone()public KeyList<E> crop()
KeyListImplcrop in class KeyListImpl<E>public GapList<E> getAll(E elem)
KeyListImplelem - elementpublic int getCount(E elem)
KeyListImplelem - elementpublic GapList<E> removeAll(E elem)
KeyListImplelem - elementpublic java.util.Set<E> getDistinct()
KeyListImplpublic E put(E elem)
KeyListImplelem - element