- 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 voidadd(T newObject)booleanhasNext()booleanhasPrevious()Thead()Cursor<Value>inner()booleanisEmpty()voidload()Tnext()intnextIndex()longnextIndexLong()Tprevious()intpreviousIndex()longpreviousIndexLong()voidremove()voidset(T newObject)voidskip(long count)voidstep()<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:
nextIndexLongin interfaceCursor<T>
-
nextIndex
public int nextIndex()
-
next
public T next()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfaceCursor<T>- Specified by:
hasPreviousin interfaceListIterator<T>
-
previousIndexLong
public long previousIndexLong()
- Specified by:
previousIndexLongin interfaceCursor<T>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfaceCursor<T>- Specified by:
previousIndexin interfaceListIterator<T>
-
previous
public T previous()
-
set
public void set(T newObject)
-
add
public void add(T newObject)
-
remove
public void remove()
-
load
public void load() throws InterruptedException- Specified by:
loadin interfaceCursor<T>- Throws:
InterruptedException
-
-