javadoc.com.google.common.collect.ForwardingMap.StandardEntrySet.html Maven / Gradle / Ivy
The newest version!
ForwardingMap.StandardEntrySet (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.StandardEntrySet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<Map.Entry<K,V>>
com.google.common.collect.ForwardingMap.StandardEntrySet
- All Implemented Interfaces:
- Iterable<Map.Entry<K,V>>, Collection<Map.Entry<K,V>>, Set<Map.Entry<K,V>>
- Enclosing class:
- ForwardingMap<K,V>
@Beta
protected abstract class ForwardingMap.StandardEntrySet
- extends AbstractSet<Map.Entry<K,V>>
A sensible implementation of Map.entrySet()
in terms of the following
methods: ForwardingMap.clear()
, ForwardingMap.containsKey(java.lang.Object)
,
ForwardingMap.get(java.lang.Object)
, ForwardingMap.isEmpty()
, ForwardingMap.remove(java.lang.Object)
, and ForwardingMap.size()
. In many cases, you
may wish to override ForwardingMap.entrySet()
to forward to this implementation
or a subclass thereof.
- Since:
- 10.0
Constructor Summary | |
---|---|
ForwardingMap.StandardEntrySet()
|
Method Summary | |
---|---|
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
isEmpty()
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection<?> c)
|
boolean |
retainAll(Collection<?> c)
|
int |
size()
|
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode |
Methods inherited from class java.util.AbstractCollection |
---|
add, addAll, containsAll, iterator, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
add, addAll, containsAll, iterator, toArray, toArray |
Constructor Detail |
---|
ForwardingMap.StandardEntrySet
public ForwardingMap.StandardEntrySet()
Method Detail |
---|
size
public int size()
- Specified by:
size
in interfaceCollection<Map.Entry<K,V>>
- Specified by:
size
in interfaceSet<Map.Entry<K,V>>
- Specified by:
size
in classAbstractCollection<Map.Entry<K,V>>
clear
public void clear()
- Specified by:
clear
in interfaceCollection<Map.Entry<K,V>>
- Specified by:
clear
in interfaceSet<Map.Entry<K,V>>
- Overrides:
clear
in classAbstractCollection<Map.Entry<K,V>>
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<Map.Entry<K,V>>
- Specified by:
contains
in interfaceSet<Map.Entry<K,V>>
- Overrides:
contains
in classAbstractCollection<Map.Entry<K,V>>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<Map.Entry<K,V>>
- Specified by:
isEmpty
in interfaceSet<Map.Entry<K,V>>
- Overrides:
isEmpty
in classAbstractCollection<Map.Entry<K,V>>
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<Map.Entry<K,V>>
- Specified by:
remove
in interfaceSet<Map.Entry<K,V>>
- Overrides:
remove
in classAbstractCollection<Map.Entry<K,V>>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<Map.Entry<K,V>>
- Specified by:
removeAll
in interfaceSet<Map.Entry<K,V>>
- Overrides:
removeAll
in classAbstractSet<Map.Entry<K,V>>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<Map.Entry<K,V>>
- Specified by:
retainAll
in interfaceSet<Map.Entry<K,V>>
- Overrides:
retainAll
in classAbstractCollection<Map.Entry<K,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