Class KeyCollections.KeyNCollection<E>
- java.lang.Object
-
- org.magicwerk.brownies.collections.KeyCollectionImpl<E>
-
- org.magicwerk.brownies.collections.KeyCollections.KeyNCollection<E>
-
- Type Parameters:
E- type of elements stored in the collection
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<E>,java.util.Collection<E>,ICollection<E>
- Direct Known Subclasses:
KeyCollections.KeyNSet
- Enclosing class:
- KeyCollections
public static class KeyCollections.KeyNCollection<E> extends KeyCollectionImpl<E>
ClassKeyCollections.KeyNCollectionimplements a key collection with a dynamic number of keys.- See Also:
Key2Collection, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyCollections.KeyNCollection.Builder<E>Builder forKeyCollections.KeyNCollection.-
Nested classes/interfaces inherited from class org.magicwerk.brownies.collections.KeyCollectionImpl
KeyCollectionImpl.Key1CollectionImplBuilder<E,K,B extends KeyCollectionImpl.KeyCollectionImplBuilder<E,B>>, KeyCollectionImpl.Key2CollectionImplBuilder<E,K1,K2,B extends KeyCollectionImpl.Key1CollectionImplBuilder<E,K1,B>>, KeyCollectionImpl.KeyCollectionImplBuilder<E,B extends KeyCollectionImpl.KeyCollectionImplBuilder<E,B>>
-
-
Constructor Summary
Constructors Constructor Description KeyNCollection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <E> KeyCollections.KeyNCollection<E>buildCollection(java.util.function.UnaryOperator<KeyCollections.KeyNCollection.Builder<E>> builder)BuildKeyCollections.KeyNListwith specified builder functionprotected KeyCollections.KeyNCollection.Builder<E>getBuilder()-
Methods inherited from class org.magicwerk.brownies.collections.KeyCollectionImpl
add, addAll, asSet, clear, clone, contains, containsAll, containsKey, copy, count, countDistinct, countDistinctKeys, crop, doAdd, doRemoveByKey, equals, filter, filterMap, flatMap, getAll, getAllByKey, getAllByKey, getAllByKeys, getAllKeys, getByKey, getCountByKey, getDistinct, getDistinctKeys, getKeyMapper, getSortedByKey, hashCode, initClone, invalidate, invalidateKey, isEmpty, isSorted, iterator, iteratorDistinct, iteratorDistinctKeys, map, mapFilter, put, putByKey, remove, removeAll, removeAll, removeAllByKey, removeAllByKey, removeByKey, retainAll, size, toArray, toArray, toList, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
Methods inherited from interface org.magicwerk.brownies.collections.ICollection
containsIf, countIf, getFirst, getFirstOrNull, getIf, getSingle, getSingleOrNull
-
-
-
-
Method Detail
-
buildCollection
public static <E> KeyCollections.KeyNCollection<E> buildCollection(java.util.function.UnaryOperator<KeyCollections.KeyNCollection.Builder<E>> builder)
BuildKeyCollections.KeyNListwith specified builder function
-
getBuilder
protected KeyCollections.KeyNCollection.Builder<E> getBuilder()
- Returns:
- builder to use in extending classes
-
-