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>ValueListIteratorbacked by a cached Key:ValueIterator.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.util.Map.Entry<?,V>>entryCacheprivate intindexprivate 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 voidadd(V o)booleanhasNext()booleanhasPrevious()Vnext()intnextIndex()Vprevious()intpreviousIndex()voidremove()voidset(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:
hasPreviousin interfacejava.util.ListIterator<V>
-
next
public V next()
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfacejava.util.ListIterator<V>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfacejava.util.ListIterator<V>
-
-