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 private
KeySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
protected java.util.Set<K>
delegate()
Returns the backing delegate instance that methods are forwarded to.java.util.Iterator<K>
iterator()
boolean
remove(java.lang.Object key)
boolean
removeAll(java.util.Collection<?> keysToRemove)
boolean
retainAll(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:ForwardingObject
Returns 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:
delegate
in classForwardingSet<K>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<K>
- Specified by:
clear
in interfacejava.util.Set<K>
- Overrides:
clear
in classForwardingCollection<K>
-
remove
public boolean remove(@CheckForNull java.lang.Object key)
- Specified by:
remove
in interfacejava.util.Collection<K>
- Specified by:
remove
in interfacejava.util.Set<K>
- Overrides:
remove
in classForwardingCollection<K>
-
removeAll
public boolean removeAll(java.util.Collection<?> keysToRemove)
- Specified by:
removeAll
in interfacejava.util.Collection<K>
- Specified by:
removeAll
in interfacejava.util.Set<K>
- Overrides:
removeAll
in classForwardingCollection<K>
-
retainAll
public boolean retainAll(java.util.Collection<?> keysToRetain)
- Specified by:
retainAll
in interfacejava.util.Collection<K>
- Specified by:
retainAll
in interfacejava.util.Set<K>
- Overrides:
retainAll
in classForwardingCollection<K>
-
-