javadoc.com.google.common.collect.ForwardingMap.StandardValues.html Maven / Gradle / Ivy
The newest version!
ForwardingMap.StandardValues (Guava: Google Core Libraries for Java 11.0.1 API)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
com.google.common.collect
Class ForwardingMap.StandardValues
java.lang.Object
java.util.AbstractCollection<V>
com.google.common.collect.ForwardingMap.StandardValues
- All Implemented Interfaces:
- Iterable<V>, Collection<V>
- Enclosing class:
- ForwardingMap<K,V>
@Beta
protected class ForwardingMap.StandardValues
- extends AbstractCollection<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
Constructor Summary | |
---|---|
ForwardingMap.StandardValues()
|
Method Summary | |
---|---|
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
isEmpty()
|
Iterator<V> |
iterator()
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection<?> c)
|
boolean |
retainAll(Collection<?> c)
|
int |
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 |
Constructor Detail |
---|
ForwardingMap.StandardValues
public ForwardingMap.StandardValues()
Method Detail |
---|
iterator
public Iterator<V> iterator()
- Specified by:
iterator
in interfaceIterable<V>
- Specified by:
iterator
in interfaceCollection<V>
- Specified by:
iterator
in classAbstractCollection<V>
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<V>
- Overrides:
remove
in classAbstractCollection<V>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<V>
- Overrides:
removeAll
in classAbstractCollection<V>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<V>
- Overrides:
retainAll
in classAbstractCollection<V>
size
public int size()
- Specified by:
size
in interfaceCollection<V>
- Specified by:
size
in classAbstractCollection<V>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<V>
- Overrides:
isEmpty
in classAbstractCollection<V>
contains
public boolean contains(@Nullable Object o)
- Specified by:
contains
in interfaceCollection<V>
- Overrides:
contains
in classAbstractCollection<V>
clear
public void clear()
- Specified by:
clear
in interfaceCollection<V>
- Overrides:
clear
in classAbstractCollection<V>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010-2012. All Rights Reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy