Class 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>
A sensible implementation of
Map.entrySet() in terms of the following
methods: ForwardingMap.clear(), ForwardingMap.containsKey(Object),
ForwardingMap.get(Object), ForwardingMap.isEmpty(), ForwardingMap.remove(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
Constructors -
Method Summary
Methods inherited from class AbstractSet
equals, hashCodeMethods inherited from class AbstractCollection
add, addAll, containsAll, iterator, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface Set
add, addAll, containsAll, iterator, spliterator, toArray, toArray
-
Constructor Details
-
StandardEntrySet
public StandardEntrySet()Constructor for use by subclasses.
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<K>- Specified by:
sizein interfaceSet<K>- Specified by:
sizein classAbstractCollection<Map.Entry<K,V>>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<K>- Specified by:
clearin interfaceSet<K>- Overrides:
clearin classAbstractCollection<Map.Entry<K,V>>
-
contains
- Specified by:
containsin interfaceCollection<K>- Specified by:
containsin interfaceSet<K>- Overrides:
containsin classAbstractCollection<Map.Entry<K,V>>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<K>- Specified by:
isEmptyin interfaceSet<K>- Overrides:
isEmptyin classAbstractCollection<Map.Entry<K,V>>
-
remove
- Specified by:
removein interfaceCollection<K>- Specified by:
removein interfaceSet<K>- Overrides:
removein classAbstractCollection<Map.Entry<K,V>>
-
removeAll
- Specified by:
removeAllin interfaceCollection<K>- Specified by:
removeAllin interfaceSet<K>
-
retainAll
- Specified by:
retainAllin interfaceCollection<K>- Specified by:
retainAllin interfaceSet<K>
-