Package com.google.common.collect
Class AbstractBiMap.KeySet
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- com.google.common.collect.ForwardingCollection<E>
-
- com.google.common.collect.ForwardingSet<K>
-
- com.google.common.collect.AbstractBiMap.KeySet
-
- All Implemented Interfaces:
java.lang.Iterable<K>,java.util.Collection<K>,java.util.Set<K>
- Enclosing class:
- AbstractBiMap<K,V>
private class AbstractBiMap.KeySet extends ForwardingSet<K>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateKeySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()protected java.util.Set<K>delegate()Returns the backing delegate instance that methods are forwarded to.java.util.Iterator<K>iterator()booleanremove(java.lang.Object key)booleanremoveAll(java.util.Collection<?> keysToRemove)booleanretainAll(java.util.Collection<?> keysToRetain)-
Methods inherited from class com.google.common.collect.ForwardingSet
equals, hashCode, standardEquals, standardHashCode, standardRemoveAll
-
Methods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, contains, containsAll, isEmpty, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
-
Methods inherited from class com.google.common.collect.ForwardingObject
toString
-
-
-
-
Method Detail
-
delegate
protected java.util.Set<K> delegate()
Description copied from class:ForwardingObjectReturns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such asForwardingSet.delegate(). Concrete subclasses override this method to supply the instance being decorated.- Specified by:
delegatein classForwardingSet<K>
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Collection<K>- Specified by:
clearin interfacejava.util.Set<K>- Overrides:
clearin classForwardingCollection<K>
-
remove
public boolean remove(java.lang.Object key)
- Specified by:
removein interfacejava.util.Collection<K>- Specified by:
removein interfacejava.util.Set<K>- Overrides:
removein classForwardingCollection<K>
-
removeAll
public boolean removeAll(java.util.Collection<?> keysToRemove)
- Specified by:
removeAllin interfacejava.util.Collection<K>- Specified by:
removeAllin interfacejava.util.Set<K>- Overrides:
removeAllin classForwardingCollection<K>
-
retainAll
public boolean retainAll(java.util.Collection<?> keysToRetain)
- Specified by:
retainAllin interfacejava.util.Collection<K>- Specified by:
retainAllin interfacejava.util.Set<K>- Overrides:
retainAllin classForwardingCollection<K>
-
-