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 classAbstractMapBasedMultimap.WrappedList.WrappedListIteratorListIterator 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 voidadd(int index, V element)booleanaddAll(int index, java.util.Collection<? extends V> c)Vget(int index)(package private) java.util.List<V>getListDelegate()intindexOf(java.lang.Object o)intlastIndexOf(java.lang.Object o)java.util.ListIterator<V>listIterator()java.util.ListIterator<V>listIterator(int index)Vremove(int index)Vset(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, 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:
addAllin interfacejava.util.List<V>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOfin interfacejava.util.List<V>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOfin interfacejava.util.List<V>
-
listIterator
public java.util.ListIterator<V> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<V>
-
listIterator
public java.util.ListIterator<V> listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List<V>
-
-