E
- type of elements stored in the setpublic class KeySet<E> extends KeyCollection<E> implements java.util.Set<E>
Key1Collection
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
KeySet.Builder<E>
Builder to construct KeySet instances.
|
KeyCollectionImpl.BuilderImpl<E>
Modifier | Constructor and Description |
---|---|
protected |
KeySet()
Protected constructor used by builder or derived collections.
|
Modifier and Type | Method and Description |
---|---|
KeySet<E> |
copy()
Returns a copy of this collection with all its elements.
|
KeySet<E> |
crop()
Returns a copy of this collection but without elements.
|
KeySet<E> |
filter(java.util.function.Predicate<? super E> filter)
Create a new collection by applying the specified filter to all elements.
|
KeySet<E> |
getAll(E elem)
Returns all equal elements.
|
protected KeySet.Builder<E> |
getBuilder() |
invalidate, put, removeAll
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 KeySet()
protected KeySet.Builder<E> getBuilder()
getBuilder
in class KeyCollection<E>
public KeySet<E> copy()
KeyCollectionImpl
copy
in interface ICollection<E>
copy
in class KeyCollection<E>
public KeySet<E> crop()
KeyCollectionImpl
crop
in interface ICollection<E>
crop
in class KeyCollection<E>
public KeySet<E> getAll(E elem)
KeyCollectionImpl
getAll
in class KeyCollection<E>
elem
- elementpublic KeySet<E> filter(java.util.function.Predicate<? super E> filter)
ICollection
filter
in interface ICollection<E>
filter
in class KeyCollection<E>
filter
- filter predicate