Package com.google.common.collect
Class AbstractMapBasedMultimap.WrappedList
- java.lang.Object
-
- java.util.AbstractCollection<V>
-
- com.google.common.collect.AbstractMapBasedMultimap.WrappedCollection
-
- com.google.common.collect.AbstractMapBasedMultimap.WrappedList
-
- All Implemented Interfaces:
java.lang.Iterable<V>
,java.util.Collection<V>
,java.util.List<V>
- Direct Known Subclasses:
AbstractMapBasedMultimap.RandomAccessWrappedList
- Enclosing class:
- AbstractMapBasedMultimap<K,V>
class AbstractMapBasedMultimap.WrappedList extends AbstractMapBasedMultimap.WrappedCollection implements java.util.List<V>
List decorator that stays in sync with the multimap values for a key.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
AbstractMapBasedMultimap.WrappedList.WrappedListIterator
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
Constructors Constructor Description WrappedList(K key, java.util.List<V> delegate, AbstractMapBasedMultimap.WrappedCollection ancestor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, V element)
boolean
addAll(int index, java.util.Collection<? extends V> c)
V
get(int index)
(package private) java.util.List<V>
getListDelegate()
int
indexOf(java.lang.Object o)
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<V>
listIterator()
java.util.ListIterator<V>
listIterator(int index)
V
remove(int index)
V
set(int index, V element)
java.util.List<V>
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
-
-
-
-
Constructor Detail
-
WrappedList
WrappedList(K key, java.util.List<V> delegate, @CheckForNull AbstractMapBasedMultimap.WrappedCollection ancestor)
-
-
Method Detail
-
getListDelegate
java.util.List<V> getListDelegate()
-
addAll
public boolean addAll(int index, java.util.Collection<? extends V> c)
- Specified by:
addAll
in interfacejava.util.List<V>
-
indexOf
public int indexOf(@CheckForNull java.lang.Object o)
- Specified by:
indexOf
in interfacejava.util.List<V>
-
lastIndexOf
public int lastIndexOf(@CheckForNull java.lang.Object o)
- Specified by:
lastIndexOf
in interfacejava.util.List<V>
-
listIterator
public java.util.ListIterator<V> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<V>
-
listIterator
public java.util.ListIterator<V> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<V>
-
-