Package com.google.common.collect
Class FilteredKeyMultimap.AddRejectingSet<K,V>
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- com.google.common.collect.ForwardingCollection<E>
-
- com.google.common.collect.ForwardingSet<V>
-
- com.google.common.collect.FilteredKeyMultimap.AddRejectingSet<K,V>
-
- All Implemented Interfaces:
java.lang.Iterable<V>
,java.util.Collection<V>
,java.util.Set<V>
- Enclosing class:
- FilteredKeyMultimap<K,V>
static class FilteredKeyMultimap.AddRejectingSet<K,V> extends ForwardingSet<V>
-
-
Constructor Summary
Constructors Constructor Description AddRejectingSet(K key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(V element)
boolean
addAll(java.util.Collection<? extends V> collection)
protected java.util.Set<V>
delegate()
Returns the backing delegate instance that methods are forwarded to.-
Methods inherited from class com.google.common.collect.ForwardingSet
equals, hashCode, standardEquals, standardHashCode, standardRemoveAll
-
Methods inherited from class com.google.common.collect.ForwardingCollection
clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
-
Methods inherited from class com.google.common.collect.ForwardingObject
toString
-
-
-
-
Field Detail
-
key
final K key
-
-
Constructor Detail
-
AddRejectingSet
AddRejectingSet(K key)
-
-
Method Detail
-
add
public boolean add(V element)
- Specified by:
add
in interfacejava.util.Collection<K>
- Specified by:
add
in interfacejava.util.Set<K>
- Overrides:
add
in classForwardingCollection<V>
-
addAll
public boolean addAll(java.util.Collection<? extends V> collection)
- Specified by:
addAll
in interfacejava.util.Collection<K>
- Specified by:
addAll
in interfacejava.util.Set<K>
- Overrides:
addAll
in classForwardingCollection<V>
-
delegate
protected java.util.Set<V> 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<V>
-
-