- java.lang.Object
-
- swim.structure.collections.ValueCursor<T>
-
- All Implemented Interfaces:
Iterator<T>,ListIterator<T>,swim.util.Cursor<T>
public class ValueCursor<T> extends Object implements swim.util.Cursor<T>
-
-
Constructor Summary
Constructors Constructor Description ValueCursor(swim.util.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()swim.util.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
-
inner
public swim.util.Cursor<Value> inner()
-
valueForm
public <T2> ValueCursor<T2> valueForm(Form<T2> valueForm)
-
valueClass
public <T2> ValueCursor<T2> valueClass(Class<T2> valueClass)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceswim.util.Cursor<T>
-
step
public void step()
- Specified by:
stepin interfaceswim.util.Cursor<T>
-
skip
public void skip(long count)
- Specified by:
skipin interfaceswim.util.Cursor<T>
-
hasNext
public boolean hasNext()
-
nextIndexLong
public long nextIndexLong()
- Specified by:
nextIndexLongin interfaceswim.util.Cursor<T>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfaceswim.util.Cursor<T>- Specified by:
nextIndexin interfaceListIterator<T>
-
next
public T next()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfaceswim.util.Cursor<T>- Specified by:
hasPreviousin interfaceListIterator<T>
-
previousIndexLong
public long previousIndexLong()
- Specified by:
previousIndexLongin interfaceswim.util.Cursor<T>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfaceswim.util.Cursor<T>- Specified by:
previousIndexin interfaceListIterator<T>
-
previous
public T previous()
- Specified by:
previousin interfaceswim.util.Cursor<T>- Specified by:
previousin interfaceListIterator<T>
-
set
public void set(T newObject)
- Specified by:
setin interfaceswim.util.Cursor<T>- Specified by:
setin interfaceListIterator<T>
-
add
public void add(T newObject)
- Specified by:
addin interfaceswim.util.Cursor<T>- Specified by:
addin interfaceListIterator<T>
-
remove
public void remove()
-
load
public void load() throws InterruptedException- Specified by:
loadin interfaceswim.util.Cursor<T>- Throws:
InterruptedException
-
-