E
- type of elements stored in the setpublic class Key2Set<E,K1,K2> extends Key2Collection<E,K1,K2> implements java.util.Set<E>
Key2Collection
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
Key2Set.Builder<E,K1,K2>
Builder to construct Key2Set instances.
|
KeyCollectionImpl.BuilderImpl<E>
Modifier | Constructor and Description |
---|---|
protected |
Key2Set()
Protected constructor used by builder or derived collections.
|
Modifier and Type | Method and Description |
---|---|
Key2Set<E,K1,K2> |
copy()
Returns a copy of this collection with all its elements.
|
Key2Set<E,K1,K2> |
crop()
Returns a copy of this collection but without elements.
|
Key2Set<E,K1,K2> |
filter(java.util.function.Predicate<? super E> filter)
Create a new collection by applying the specified filter to all elements.
|
Key2Set<E,K1,K2> |
getAll(E elem)
Returns all equal elements.
|
Key2Set<E,K1,K2> |
getAllByKey1(K1 key)
Returns all elements with specified key.
|
Key2Set<E,K1,K2> |
getAllByKey2(K2 key)
Returns all elements with specified key.
|
protected Key2Set.Builder<E,K1,K2> |
getBuilder() |
asMap1, asMap2, containsKey1, containsKey2, getAllKeys1, getAllKeys2, getByKey1, getByKey2, getCountByKey1, getCountByKey2, getDistinctKeys1, getDistinctKeys2, getKey1Mapper, getKey2Mapper, invalidate, invalidateKey1, invalidateKey2, put, putByKey1, putByKey2, removeAll, removeAllByKey1, removeAllByKey2, removeByKey1, removeByKey2
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 Key2Set()
protected Key2Set.Builder<E,K1,K2> getBuilder()
getBuilder
in class Key2Collection<E,K1,K2>
public Key2Set<E,K1,K2> copy()
KeyCollectionImpl
copy
in interface ICollection<E>
copy
in class Key2Collection<E,K1,K2>
public Key2Set<E,K1,K2> crop()
KeyCollectionImpl
crop
in interface ICollection<E>
crop
in class Key2Collection<E,K1,K2>
public Key2Set<E,K1,K2> getAll(E elem)
KeyCollectionImpl
getAll
in class Key2Collection<E,K1,K2>
elem
- elementpublic Key2Set<E,K1,K2> getAllByKey1(K1 key)
Key2Collection
getAllByKey1
in class Key2Collection<E,K1,K2>
key
- keypublic Key2Set<E,K1,K2> getAllByKey2(K2 key)
Key2Collection
getAllByKey2
in class Key2Collection<E,K1,K2>
key
- keypublic Key2Set<E,K1,K2> filter(java.util.function.Predicate<? super E> filter)
ICollection
filter
in interface ICollection<E>
filter
in class Key2Collection<E,K1,K2>
filter
- filter predicate