- java.lang.Object
-
- swim.structure.collections.ValueIterator<T>
-
- swim.structure.collections.ValueListIterator<T>
-
- All Implemented Interfaces:
Iterator<T>
,ListIterator<T>
public class ValueListIterator<T> extends ValueIterator<T> implements ListIterator<T>
-
-
Field Summary
-
Fields inherited from class swim.structure.collections.ValueIterator
inner, valueForm
-
-
Constructor Summary
Constructors Constructor Description ValueListIterator(ListIterator<? extends Value> inner, Form<T> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T newObject)
boolean
hasPrevious()
ListIterator<Value>
inner()
int
nextIndex()
T
previous()
int
previousIndex()
void
set(T newObject)
<T2> ValueListIterator<T2>
valueClass(Class<T2> valueClass)
<T2> ValueListIterator<T2>
valueForm(Form<T2> valueForm)
-
Methods inherited from class swim.structure.collections.ValueIterator
hasNext, next, remove, valueForm
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Methods inherited from interface java.util.ListIterator
hasNext, next, remove
-
-
-
-
Constructor Detail
-
ValueListIterator
public ValueListIterator(ListIterator<? extends Value> inner, Form<T> valueForm)
-
-
Method Detail
-
valueForm
public <T2> ValueListIterator<T2> valueForm(Form<T2> valueForm)
- Overrides:
valueForm
in classValueIterator<T>
-
valueClass
public <T2> ValueListIterator<T2> valueClass(Class<T2> valueClass)
- Overrides:
valueClass
in classValueIterator<T>
-
inner
public ListIterator<Value> inner()
- Overrides:
inner
in classValueIterator<T>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfaceListIterator<T>
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceListIterator<T>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfaceListIterator<T>
-
previous
public T previous()
- Specified by:
previous
in interfaceListIterator<T>
-
add
public void add(T newObject)
- Specified by:
add
in interfaceListIterator<T>
-
set
public void set(T newObject)
- Specified by:
set
in interfaceListIterator<T>
-
-