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