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.
|
DEFAULT_CAPACITY| Modifier and Type | Method and Description |
|---|---|
KeyList<E> |
copy()
Returns a shallow copy of this GapList instance.
|
KeyList<E> |
crop()
Returns a copy this list but without elements.
|
GapList<E> |
getAll(E elem)
Returns all elements in the list equal to the specified element.
|
int |
getCount(E elem)
Counts how many times the specified element is contained in the list.
|
java.util.Set<E> |
getDistinct()
Returns distinct elements in the list.
|
E |
put(E elem)
Adds or replaces element.
|
GapList<E> |
removeAll(E elem)
Removes all equal elements.
|
add, add, addIf, asSet, binarySearch, capacity, clear, clone, contains, containsKey, create, create, create, create, ensureCapacity, get, getAllByKey, getByKey, getCountByKey, getDistinctKeys, getKeyMapper, indexOf, indexOfKey, indexOfKey, set, size, sortdoCreate, EMPTY, getAll, getDefaultElem, init, init, init, mappedList, remove, trimToSize, unmodifiableListaddAll, addAll, addAll, addAll, addAll, addAll, addFirst, addIfAbsent, addLast, binarySearch, containsAll, containsAny, copy, copy, descendingIterator, drag, element, equals, extract, fill, fill, filter, getArray, getFirst, getLast, hashCode, init, isEmpty, iterator, lastIndexOf, listIterator, listIterator, merge, move, move, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, 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, toStringpublic KeyList<E> copy()
GapListcopy in class KeyListImpl<E>IList.clone()public KeyList<E> crop()
KeyListImplcrop in class KeyListImpl<E>public GapList<E> getAll(E elem)
IListgetAll in class KeyListImpl<E>elem - element to look forpublic int getCount(E elem)
IListgetCount in class KeyListImpl<E>elem - element to countpublic GapList<E> removeAll(E elem)
IListremoveAll in class KeyListImpl<E>elem - elementpublic java.util.Set<E> getDistinct()
IListgetDistinct in class KeyListImpl<E>public E put(E elem)
KeyListImplelem - element