private static final class EntryListAdapter.ValueListIterator<V>
extends java.lang.Object
implements java.util.ListIterator<V>
ListIterator backed by a cached Key:Value Iterator.| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.util.Map.Entry<?,V>> |
entryCache |
private int |
index |
private java.util.Iterator<? extends java.util.Map.Entry<?,V>> |
iterator |
| Constructor and Description |
|---|
ValueListIterator(java.lang.Iterable<? extends java.util.Map.Entry<?,V>> iterable,
int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(V o) |
boolean |
hasNext() |
boolean |
hasPrevious() |
V |
next() |
int |
nextIndex() |
V |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(V o) |
private final java.util.Iterator<? extends java.util.Map.Entry<?,V>> iterator
private final java.util.List<java.util.Map.Entry<?,V>> entryCache
private int index
ValueListIterator(java.lang.Iterable<? extends java.util.Map.Entry<?,V>> iterable, int index)
public boolean hasNext()
public boolean hasPrevious()
hasPrevious in interface java.util.ListIterator<V>public V next()
public int nextIndex()
nextIndex in interface java.util.ListIterator<V>public int previousIndex()
previousIndex in interface java.util.ListIterator<V>