- java.lang.Object
-
- swim.structure.collections.ValueCursor<T>
-
- All Implemented Interfaces:
Iterator<T>
,ListIterator<T>
,Cursor<T>
public class ValueCursor<T> extends Object implements Cursor<T>
-
-
Constructor Summary
Constructors Constructor Description ValueCursor(Cursor<? extends Value> inner, Form<T> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T newObject)
boolean
hasNext()
boolean
hasPrevious()
T
head()
Cursor<Value>
inner()
boolean
isEmpty()
void
load()
T
next()
int
nextIndex()
long
nextIndexLong()
T
previous()
int
previousIndex()
long
previousIndexLong()
void
remove()
void
set(T newObject)
void
skip(long count)
void
step()
<T2> ValueCursor<T2>
valueClass(Class<T2> valueClass)
Form<T>
valueForm()
<T2> ValueCursor<T2>
valueForm(Form<T2> 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
-
-
-
-
Method Detail
-
valueForm
public <T2> ValueCursor<T2> valueForm(Form<T2> valueForm)
-
valueClass
public <T2> ValueCursor<T2> valueClass(Class<T2> valueClass)
-
hasNext
public boolean hasNext()
-
nextIndexLong
public long nextIndexLong()
- Specified by:
nextIndexLong
in interfaceCursor<T>
-
nextIndex
public int nextIndex()
-
next
public T next()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceCursor<T>
- Specified by:
hasPrevious
in interfaceListIterator<T>
-
previousIndexLong
public long previousIndexLong()
- Specified by:
previousIndexLong
in interfaceCursor<T>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfaceCursor<T>
- Specified by:
previousIndex
in interfaceListIterator<T>
-
previous
public T previous()
-
set
public void set(T newObject)
-
add
public void add(T newObject)
-
remove
public void remove()
-
-