E
- type of elements stored in the setpublic class Key1Set<E,K> extends Key1Collection<E,K> implements java.util.Set<E>
Key1Collection
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
Key1Set.Builder<E,K>
Builder to construct Key1Set instances.
|
KeyCollectionImpl.BuilderImpl<E>
Modifier | Constructor and Description |
---|---|
protected |
Key1Set()
Protected constructor used by builder or derived collections.
|
Modifier and Type | Method and Description |
---|---|
Key1Set<E,K> |
copy()
Returns a copy of this collection with all its elements.
|
Key1Set<E,K> |
crop()
Returns a copy of this collection but without elements.
|
Key1Set<E,K> |
filter(java.util.function.Predicate<? super E> filter)
Create a new collection by applying the specified filter to all elements.
|
Key1Set<E,K> |
getAll(E elem)
Returns all equal elements.
|
Key1Set<E,K> |
getAllByKey1(K key)
Returns all elements with specified key.
|
protected Key1Set.Builder<E,K> |
getBuilder() |
asMap1, containsKey1, getAllKeys1, getByKey1, getCountByKey1, getDistinctKeys1, getKey1Mapper, invalidate, invalidateKey1, put, putByKey1, removeAll, removeAllByKey1, removeByKey1
add, addAll, asSet, clear, clone, contains, containsAll, containsKey, doAdd, doRemoveByKey, equals, filterMap, flatMap, getAllByKey, getAllByKey, getAllKeys, getByKey, getCount, getCountByKey, getDistinct, getDistinctKeys, getKeyMapper, hashCode, initClone, invalidateKey, isEmpty, isSorted, iterator, map, mapFilter, putByKey, remove, removeAll, removeAllByKey, removeAllByKey, removeByKey, retainAll, size, toArray, toArray, toList, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
containsIf, countIf, getFirst, getFirstOrNull, getIf, getSingle, getSingleOrNull
protected Key1Set()
protected Key1Set.Builder<E,K> getBuilder()
getBuilder
in class Key1Collection<E,K>
public Key1Set<E,K> copy()
KeyCollectionImpl
copy
in interface ICollection<E>
copy
in class Key1Collection<E,K>
public Key1Set<E,K> crop()
KeyCollectionImpl
crop
in interface ICollection<E>
crop
in class Key1Collection<E,K>
public Key1Set<E,K> getAll(E elem)
KeyCollectionImpl
getAll
in class Key1Collection<E,K>
elem
- elementpublic Key1Set<E,K> getAllByKey1(K key)
Key1Collection
getAllByKey1
in class Key1Collection<E,K>
key
- keypublic Key1Set<E,K> filter(java.util.function.Predicate<? super E> filter)
ICollection
filter
in interface ICollection<E>
filter
in class Key1Collection<E,K>
filter
- filter predicate