Class KeyCollections.KeyNList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- org.magicwerk.brownies.collections.IList<E>
-
- org.magicwerk.brownies.collections.KeyListImpl<E>
-
- org.magicwerk.brownies.collections.KeyCollections.KeyNList<E>
-
- Type Parameters:
E- type of elements stored in the list
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.List<E>,java.util.RandomAccess,ICollection<E>,IListable<E>
- Enclosing class:
- KeyCollections
public static class KeyCollections.KeyNList<E> extends KeyListImpl<E>
ClassKeyCollections.KeyNListimplements a key list with a dynamic number of keys.- See Also:
Key2List, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyCollections.KeyNList.Builder<E>Builder forKeyCollections.KeyNList.-
Nested classes/interfaces inherited from class org.magicwerk.brownies.collections.KeyListImpl
KeyListImpl.ReadOnlyKeyListImpl<E>
-
Nested classes/interfaces inherited from class org.magicwerk.brownies.collections.IList
IList.IListableFromArray<E>, IList.IListableFromCollection<E>, IList.IListableFromList<E>, IList.IListableFromMult<E>
-
-
Constructor Summary
Constructors Constructor Description KeyNList()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <E> KeyCollections.KeyNList<E>buildList(java.util.function.UnaryOperator<KeyCollections.KeyNList.Builder<E>> builder)BuildKeyCollections.KeyNListwith specified builder functionprotected KeyCollections.KeyNList.Builder<E>getBuilder()-
Methods inherited from class org.magicwerk.brownies.collections.KeyListImpl
add, add, asSet, binarySearch, capacity, clear, clone, contains, containsKey, copy, count, countDistinct, countDistinctKeys, crop, doAdd, doAssign, doClone, doCopy, doCreate, doCrop, doEnsureCapacity, doGet, doGetAll, doRemove, doRemoveAll, doReSet, doSet, ensureCapacity, get, getAll, getAllByKey, getAllByKeys, getAllKeys, getByKey, getCountByKey, getDefaultElem, getDistinct, getDistinctKeys, getKeyMapper, getSortedByKey, immutableList, indexOf, indexOfKey, indexOfKey, invalidate, invalidateKey, isReadOnly, isSorted, iteratorDistinct, iteratorDistinctKeys, put, putByKey, remove, removeAll, removeAllByKey, removeByKey, set, size, sort, trimToSize, unmodifiableList, unwrap
-
Methods inherited from class org.magicwerk.brownies.collections.IList
addAll, addAll, addAll, addAll, addArray, addArray, addArray, addArray, addFirst, addIfAbsent, addLast, addMult, addMult, asDeque, asIListable, binarySearch, checkIndex, checkIndexAdd, checkLength, checkLengths, checkNonNull, checkRange, containsAll, containsAny, containsIf, copy, countIf, descendingIterator, doAddAll, doClear, doCreateArray, doIndexOf, doIndexOfIf, doInitAll, doLastIndexOf, doLastIndexOfIf, doModify, doPutAll, doReplace, doRotate, drag, element, equals, extract, extractIf, fill, filter, filterMap, flatMap, getAll, getFirst, getFirstOrNull, getIf, getLast, getLastOrNull, getSingle, getSingleOrNull, hashCode, indexOf, indexOfIf, indexOfIf, initAll, initAll, initArray, initMult, isEmpty, iterator, lastIndexOf, lastIndexOf, lastIndexOfIf, lastIndexOfIf, listIterator, listIterator, map, mapFilter, move, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, put, putAll, putAll, putArray, putMult, remove, remove, remove, removeAll, removeAll, removeFirst, removeFirstOccurrence, removeIf, removeLast, removeLastOccurrence, replace, replaceAll, replaceAll, replaceArray, replaceMult, resize, retain, retainAll, retainAll, retainIf, reverse, reverse, rotate, rotate, setAll, setAll, setArray, setArray, setMult, sort, swap, toArray, toArray, toArray, toArray, toArray, toArray, toString, transferAdd, transferCopy, transferMove, transferRemove, transferSwap, transform
-
-
-
-
Method Detail
-
buildList
public static <E> KeyCollections.KeyNList<E> buildList(java.util.function.UnaryOperator<KeyCollections.KeyNList.Builder<E>> builder)
BuildKeyCollections.KeyNListwith specified builder function
-
getBuilder
protected KeyCollections.KeyNList.Builder<E> getBuilder()
- Returns:
- builder to use in extending classes
-
-