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