Package com.google.common.collect
Class AbstractMapBasedMultimap.WrappedList
java.lang.Object
java.util.AbstractCollection<V>
AbstractMapBasedMultimap<K,V>.WrappedCollection
com.google.common.collect.AbstractMapBasedMultimap.WrappedList
- All Implemented Interfaces:
Iterable<V>,Collection<V>,List<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 classListIterator 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 TypeMethodDescriptionvoidbooleanaddAll(int index, Collection<? extends V> c) get(int index) intintlistIterator(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, toStringMethods inherited from class java.util.AbstractCollection
isEmpty, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
lastIndexOfin interfaceList<V>
-
listIterator
- Specified by:
listIteratorin interfaceList<V>
-
listIterator
- Specified by:
listIteratorin interfaceList<V>
-
subList
-