Package com.google.common.collect
Class AbstractMapBasedMultimap.WrappedList
java.lang.Object
java.util.AbstractCollection<V>
AbstractMapBasedMultimap<K,V>.com.google.common.collect.AbstractMapBasedMultimap.WrappedCollection
com.google.common.collect.AbstractMapBasedMultimap.WrappedList
- All Implemented Interfaces:
Iterable<V>
,Collection<V>
,List<V>
,SequencedCollection<V>
- Direct Known Subclasses:
AbstractMapBasedMultimap.RandomAccessWrappedList
- Enclosing class:
AbstractMapBasedMultimap<K,
V>
class AbstractMapBasedMultimap.WrappedList
extends AbstractMapBasedMultimap<K,V>.WrappedCollection
implements List<V>
List decorator that stays in sync with the multimap values for a key.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
ListIterator decorator.Nested classes/interfaces inherited from class com.google.common.collect.AbstractMapBasedMultimap.WrappedCollection
AbstractMapBasedMultimap.WrappedCollection.WrappedIterator
-
Field Summary
Fields inherited from class com.google.common.collect.AbstractMapBasedMultimap.WrappedCollection
ancestor, ancestorDelegate, delegate, key
-
Constructor Summary
ConstructorsConstructorDescriptionWrappedList
(K key, List<V> delegate, AbstractMapBasedMultimap<K, V>.WrappedCollection ancestor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
addAll
(int index, Collection<? extends V> c) get
(int index) int
int
listIterator
(int index) remove
(int index) subList
(int fromIndex, int toIndex) Methods inherited from class com.google.common.collect.AbstractMapBasedMultimap.WrappedCollection
add, addAll, addToMap, clear, contains, containsAll, equals, getAncestor, getDelegate, getKey, hashCode, iterator, refreshIfEmpty, remove, removeAll, removeIfEmpty, retainAll, size, spliterator, toString
Methods inherited from class java.util.AbstractCollection
isEmpty, toArray, toArray
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
WrappedList
WrappedList(K key, List<V> delegate, @CheckForNull AbstractMapBasedMultimap<K, V>.WrappedCollection ancestor)
-
-
Method Details
-
getListDelegate
-
addAll
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<V>
-
listIterator
- Specified by:
listIterator
in interfaceList<V>
-
listIterator
- Specified by:
listIterator
in interfaceList<V>
-
subList
-