protected static class KeyList.ImmutableKeyList<E> extends KeyList<E>
KeyList.Builder<E>, KeyList.ImmutableKeyList<E>IList.IReadOnlyList<E>, IList.IReadOnlyListFromArray<E>, IList.IReadOnlyListFromCollection<E>, IList.IReadOnlyListFromList<E>, IList.IReadOnlyListFromMult<E>| Modifier | Constructor and Description |
|---|---|
protected |
ImmutableKeyList(KeyList<E> that)
Private constructor used internally.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doAdd(int index,
E elem)
Helper method for adding an element to the list.
|
protected void |
doClear() |
protected void |
doEnsureCapacity(int capacity)
Increases the capacity of this list instance, if
necessary, to ensure that it can hold at least the number of elements
specified by the minimum capacity argument.
|
protected void |
doModify()
This method is called internally before elements are allocated or freed.
|
protected E |
doRemove(int index)
Helper method to remove an element.
|
protected void |
doRemoveAll(int index,
int len)
Remove specified range of elements from list.
|
protected E |
doReSet(int index,
E elem)
Sets an element at specified position.
|
protected E |
doSet(int index,
E elem)
Helper method for setting an element in the list.
|
clone, copy, crop, getAll, getBuilder, getCount, getDistinct, put, removeAll, unmodifiableListadd, add, addIf, asSet, binarySearch, capacity, clear, contains, containsKey, doAssign, doClone, doCreate, doGet, doGetAll, ensureCapacity, get, getAllByKey, getAllKeys, getByKey, getCountByKey, getDefaultElem, getDistinctKeys, getKeyMapper, indexOf, indexOfKey, indexOfKey, invalidate, invalidateKey, isSorted, putByKey, removeAllByKey, removeByKey, set, size, sort, trimToSize, unwrapaddAll, addAll, addAll, addAll, addArray, addArray, addArray, addArray, addFirst, addIfAbsent, addLast, addMult, addMult, binarySearch, checkIndex, checkIndexAdd, checkLength, checkLengths, checkNonNull, checkRange, containsAll, containsAny, containsIf, copy, descendingIterator, doAddAll, doCreateArray, doReplaceAll, doRotate, drag, element, equals, extract, extractIf, fill, filter, filteredList, getAll, getFirst, getIf, getLast, getSingle, getSingleOrEmpty, hashCode, indexOf, indexOfIf, initAll, initAll, initArray, initMult, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, mappedList, move, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, put, putAll, putAll, putArray, putMult, remove, remove, remove, remove, removeAll, removeAll, removeFirst, removeFirstOccurrence, removeIf, removeLast, removeLastOccurrence, replaceAll, replaceAll, replaceArray, replaceMult, resize, retainAll, retainAll, retainIf, reverse, reverse, rotate, rotate, setAll, setAll, setArray, setArray, setMult, sort, swap, toArray, toArray, toArray, toArray, toArray, toArray, toString, transferCopy, transferMove, transferRemove, transferSwap, transform, transformedListprotected void doEnsureCapacity(int capacity)
IListdoEnsureCapacity in class KeyListImpl<E>capacity - the desired minimum capacityprotected boolean doAdd(int index,
E elem)
IListdoAdd in class KeyListImpl<E>index - index where element should be added
(-1 means it is up to the implementation to choose the index)elem - element to addprotected E doSet(int index, E elem)
IListdoSet in class KeyListImpl<E>index - index where element will be placedelem - element to setprotected E doReSet(int index, E elem)
IListdoReSet in class KeyListImpl<E>index - index where element will be placedelem - element to setprotected E doRemove(int index)
IListdoRemove in class KeyListImpl<E>index - index of element to removeprotected void doRemoveAll(int index,
int len)
IListdoRemoveAll in class KeyListImpl<E>index - index of first element to removelen - number of elements to remove