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) K |
key |
(package private) LinkedListMultimap.Node<K,V> |
next |
(package private) int |
nextIndex |
(package private) LinkedListMultimap.Node<K,V> |
previous |
Constructor and Description |
---|
ValueForKeyIterator(K key)
Constructs a new iterator over all values for the specified key.
|
ValueForKeyIterator(K 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 K key
int nextIndex
@CheckForNull LinkedListMultimap.Node<K,V> next
@CheckForNull LinkedListMultimap.Node<K,V> current
@CheckForNull LinkedListMultimap.Node<K,V> previous
ValueForKeyIterator(K key)
public ValueForKeyIterator(K 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()