Package org.eclipse.sisu.wire
Class EntryListAdapter.ValueListIterator<V>
- java.lang.Object
-
- org.eclipse.sisu.wire.EntryListAdapter.ValueListIterator<V>
-
- All Implemented Interfaces:
java.util.Iterator<V>
,java.util.ListIterator<V>
- Enclosing class:
- EntryListAdapter<V>
private static final class EntryListAdapter.ValueListIterator<V> extends java.lang.Object implements java.util.ListIterator<V>
ValueListIterator
backed by a cached Key:ValueIterator
.
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ValueListIterator(java.lang.Iterable<? extends java.util.Map.Entry<?,V>> iterable, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(V o)
boolean
hasNext()
boolean
hasPrevious()
V
next()
int
nextIndex()
V
previous()
int
previousIndex()
void
remove()
void
set(V o)
-
-
-
Constructor Detail
-
ValueListIterator
ValueListIterator(java.lang.Iterable<? extends java.util.Map.Entry<?,V>> iterable, int index)
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator<V>
-
next
public V next()
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfacejava.util.ListIterator<V>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfacejava.util.ListIterator<V>
-
-