Package com.google.common.collect
Class ForwardingMap.StandardKeySet
java.lang.Object
java.util.AbstractCollection<K>
java.util.AbstractSet<K>
com.google.common.collect.Sets.ImprovedAbstractSet<K>
com.google.common.collect.Maps.KeySet<K,V>
com.google.common.collect.ForwardingMap.StandardKeySet
- All Implemented Interfaces:
Iterable<K>
,Collection<K>
,Set<K>
- Enclosing class:
ForwardingMap<K,
V>
A sensible implementation of
Map.keySet()
in terms of the following methods: ForwardingMap.clear()
, ForwardingMap.containsKey(java.lang.Object)
, ForwardingMap.isEmpty()
, ForwardingMap.remove(java.lang.Object)
, ForwardingMap.size()
, and the Set.iterator()
method of
ForwardingMap.entrySet()
. In many cases, you may wish to override ForwardingMap.keySet()
to forward to this implementation or a subclass thereof.- Since:
- 10.0
-
Field Summary
Fields inherited from class com.google.common.collect.Maps.KeySet
map
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.collect.Maps.KeySet
clear, contains, forEach, isEmpty, iterator, map, remove, size
Methods inherited from class com.google.common.collect.Sets.ImprovedAbstractSet
removeAll, retainAll
Methods inherited from class java.util.AbstractSet
equals, hashCode
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
add, addAll, containsAll, spliterator, toArray, toArray
-
Constructor Details
-
StandardKeySet
public StandardKeySet()Constructor for use by subclasses.
-