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 Form| Modifier and Type | Class and Description |
|---|---|
static class |
Key2Set.Builder<E,K1,K2>
Builder to construct KeyCollection 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> |
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, getCount, getCountByKey1, getCountByKey2, getDistinct, getDistinctKeys1, getDistinctKeys2, getKey1Mapper, getKey2Mapper, invalidate, invalidateKey1, invalidateKey2, put, putByKey1, putByKey2, removeAll, removeAllByKey1, removeAllByKey2, removeByKey1, removeByKey2add, addAll, asSet, clear, clone, contains, containsAll, containsKey, doRemoveByKey, equals, getAllByKey, getAllByKey, getAllKeys, getByKey, getCountByKey, getDistinctKeys, getKeyMapper, hashCode, initClone, invalidateKey, isEmpty, isSorted, iterator, putByKey, remove, removeAll, removeAllByKey, removeAllByKey, removeByKey, retainAll, size, toArray, toArray, toList, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitprotected Key2Set()
protected Key2Set.Builder<E,K1,K2> getBuilder()
getBuilder in class Key2Collection<E,K1,K2>public Key2Set<E,K1,K2> copy()
KeyCollectionImplcopy in class Key2Collection<E,K1,K2>public Key2Set<E,K1,K2> crop()
KeyCollectionImplcrop in class Key2Collection<E,K1,K2>public Key2Set<E,K1,K2> getAll(E elem)
KeyCollectionImplgetAll in class Key2Collection<E,K1,K2>elem - elementpublic Key2Set<E,K1,K2> getAllByKey1(K1 key)
Key2CollectiongetAllByKey1 in class Key2Collection<E,K1,K2>key - keypublic Key2Set<E,K1,K2> getAllByKey2(K2 key)
Key2CollectiongetAllByKey2 in class Key2Collection<E,K1,K2>key - key