private class LinkedListMultimap.ValueForKeyIterator
extends java.lang.Object
implements java.util.ListIterator<V>
ListIterator
over values for a specified key.Modifier and Type | Field and Description |
---|---|
(package private) LinkedListMultimap.Node<K,V> |
current |
(package private) java.lang.Object |
key |
(package private) LinkedListMultimap.Node<K,V> |
next |
(package private) int |
nextIndex |
(package private) LinkedListMultimap.Node<K,V> |
previous |
Constructor and Description |
---|
ValueForKeyIterator(java.lang.Object key)
Constructs a new iterator over all values for the specified key.
|
ValueForKeyIterator(java.lang.Object key,
int index)
Constructs a new iterator over all values for the specified key starting
at the specified index.
|
Modifier and Type | Method and Description |
---|---|
void |
add(V value) |
boolean |
hasNext() |
boolean |
hasPrevious() |
V |
next() |
int |
nextIndex() |
V |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(V value) |
final java.lang.Object key
int nextIndex
LinkedListMultimap.Node<K,V> next
LinkedListMultimap.Node<K,V> current
LinkedListMultimap.Node<K,V> previous
ValueForKeyIterator(@Nullable java.lang.Object key)
public ValueForKeyIterator(@Nullable java.lang.Object key, int index)
java.lang.IndexOutOfBoundsException
- if index is invalidpublic boolean hasNext()
public V next()
public boolean hasPrevious()
hasPrevious
in interface java.util.ListIterator<V>
public int nextIndex()
nextIndex
in interface java.util.ListIterator<V>
public int previousIndex()
previousIndex
in interface java.util.ListIterator<V>
public void remove()