Package com.google.common.collect
Class ForwardingMap.StandardEntrySet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- com.google.common.collect.ForwardingMap.StandardEntrySet
-
- All Implemented Interfaces:
Iterable<Map.Entry<K,V>>
,Collection<Map.Entry<K,V>>
,Set<Map.Entry<K,V>>
protected abstract class ForwardingMap.StandardEntrySet extends AbstractSet<E>
A sensible implementation ofMap.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)
, andForwardingMap.size()
. In many cases, you may wish to overrideForwardingMap.entrySet()
to forward to this implementation or a subclass thereof.- Since:
- 10.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StandardEntrySet()
Constructor for use by subclasses.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
contains(@Nullable Object o)
boolean
isEmpty()
boolean
remove(@Nullable 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.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
add, addAll, containsAll, iterator, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
StandardEntrySet
protected StandardEntrySet()
Constructor for use by subclasses.
-
-
Method Detail
-
size
public int size()
-
clear
public void clear()
-
isEmpty
public boolean isEmpty()
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
-