Class ForwardingMap.StandardValues
java.lang.Object
java.util.AbstractCollection<V>
com.google.common.collect.ForwardingMap.StandardValues
- All Implemented Interfaces:
- Iterable<V>, Collection<V>
A sensible implementation of 
Map.values() in terms of the following methods: ForwardingMap.clear(), ForwardingMap.containsValue(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
- Author:
- Kevin Bourrillion, Jared Levy, Louis Wasserman
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class AbstractCollectionadd, addAll, containsAll, toArray, toArray, toStringMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collectionequals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
- 
Constructor Details- 
StandardValuespublic StandardValues()Constructor for use by subclasses.
 
- 
- 
Method Details- 
iterator
- 
forEach
- 
remove- Specified by:
- removein interface- Collection<K extends @Nullable Object>
- Overrides:
- removein class- AbstractCollection<V extends @Nullable Object>
 
- 
removeAll- Specified by:
- removeAllin interface- Collection<K extends @Nullable Object>
- Overrides:
- removeAllin class- AbstractCollection<V extends @Nullable Object>
 
- 
retainAll- Specified by:
- retainAllin interface- Collection<K extends @Nullable Object>
- Overrides:
- retainAllin class- AbstractCollection<V extends @Nullable Object>
 
- 
sizepublic int size()- Specified by:
- sizein interface- Collection<K extends @Nullable Object>
- Specified by:
- sizein class- AbstractCollection<V extends @Nullable Object>
 
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin interface- Collection<K extends @Nullable Object>
- Overrides:
- isEmptyin class- AbstractCollection<V extends @Nullable Object>
 
- 
contains- Specified by:
- containsin interface- Collection<K extends @Nullable Object>
- Overrides:
- containsin class- AbstractCollection<V extends @Nullable Object>
 
- 
clearpublic void clear()- Specified by:
- clearin interface- Collection<K extends @Nullable Object>
- Overrides:
- clearin class- AbstractCollection<V extends @Nullable Object>
 
 
-