Class ForwardingMap.StandardKeySet

All Implemented Interfaces:
Iterable<K>, Collection<K>, Set<K>
Enclosing class:
ForwardingMap<K,V>

protected class ForwardingMap.StandardKeySet extends Maps.KeySet<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
  • Constructor Details

    • StandardKeySet

      public StandardKeySet()
      Constructor for use by subclasses.