com.google.common.collect
Class ForwardingMap.StandardEntrySet
java.lang.Object
   java.util.AbstractCollection<E>
java.util.AbstractCollection<E>
       java.util.AbstractSet<Map.Entry<K,V>>
java.util.AbstractSet<Map.Entry<K,V>>
           com.google.common.collect.ForwardingMap.StandardEntrySet
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
 
 
 
 
 
 
ForwardingMap.StandardEntrySet
public ForwardingMap.StandardEntrySet()
- Constructor for use by subclasses.
 
size
public int size()
- 
- Specified by:
- sizein interface- Collection<Map.Entry<K,V>>
- Specified by:
- sizein interface- Set<Map.Entry<K,V>>
- Specified by:
- sizein class- AbstractCollection<Map.Entry<K,V>>
 
- 
 
clear
public void clear()
- 
- Specified by:
- clearin interface- Collection<Map.Entry<K,V>>
- Specified by:
- clearin interface- Set<Map.Entry<K,V>>
- Overrides:
- clearin class- AbstractCollection<Map.Entry<K,V>>
 
- 
 
contains
public boolean contains(Object o)
- 
- Specified by:
- containsin interface- Collection<Map.Entry<K,V>>
- Specified by:
- containsin interface- Set<Map.Entry<K,V>>
- Overrides:
- containsin class- AbstractCollection<Map.Entry<K,V>>
 
- 
 
isEmpty
public boolean isEmpty()
- 
- Specified by:
- isEmptyin interface- Collection<Map.Entry<K,V>>
- Specified by:
- isEmptyin interface- Set<Map.Entry<K,V>>
- Overrides:
- isEmptyin class- AbstractCollection<Map.Entry<K,V>>
 
- 
 
remove
public boolean remove(Object o)
- 
- Specified by:
- removein interface- Collection<Map.Entry<K,V>>
- Specified by:
- removein interface- Set<Map.Entry<K,V>>
- Overrides:
- removein class- AbstractCollection<Map.Entry<K,V>>
 
- 
 
removeAll
public boolean removeAll(Collection<?> c)
- 
- Specified by:
- removeAllin interface- Collection<Map.Entry<K,V>>
- Specified by:
- removeAllin interface- Set<Map.Entry<K,V>>
- Overrides:
- removeAllin class- AbstractSet<Map.Entry<K,V>>
 
- 
 
retainAll
public boolean retainAll(Collection<?> c)
- 
- Specified by:
- retainAllin interface- Collection<Map.Entry<K,V>>
- Specified by:
- retainAllin interface- Set<Map.Entry<K,V>>
- Overrides:
- retainAllin class- AbstractCollection<Map.Entry<K,V>>
 
- 
 
Copyright © 2010-2012. All Rights Reserved.