Class ForwardingMap.StandardKeySet

java.lang.Object
java.util.AbstractCollection<K>
java.util.AbstractSet<K>
com.google.common.collect.ForwardingMap.StandardKeySet
All Implemented Interfaces:
Iterable<K>, Collection<K>, Set<K>
Enclosing class:
ForwardingMap<K extends @Nullable Object,V extends @Nullable Object>

protected class ForwardingMap.StandardKeySet extends AbstractSet<K>
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
Author:
Kevin Bourrillion, Jared Levy, Louis Wasserman