-
- All Superinterfaces:
Iterator<T>,ListIterator<T>
- All Known Subinterfaces:
OrderedMapCursor<K,V>
- All Known Implementing Classes:
ValueCursor,ValueEntryCursor,ValueOrderedMapCursor
public interface Cursor<T> extends ListIterator<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidadd(T object)static <T> Cursor<T>array(Object[] array)static <T> Cursor<T>array(Object[] array, int index)static <T> Cursor<T>array(Object[] array, int index, int limit)static <T> Cursor<T>empty()booleanhasNext()booleanhasPrevious()Thead()booleanisEmpty()static <K> Cursor<K>keys(Cursor<? extends Map.Entry<? extends K,?>> entries)default voidload()Tnext()default intnextIndex()longnextIndexLong()Tprevious()default intpreviousIndex()longpreviousIndexLong()default voidremove()default voidset(T object)voidskip(long count)voidstep()static <T> Cursor<T>unary(T value)static <V> Cursor<V>values(Cursor<? extends Map.Entry<?,? extends V>> entries)-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
isEmpty
boolean isEmpty()
-
head
T head()
-
step
void step()
-
skip
void skip(long count)
-
hasNext
boolean hasNext()
-
nextIndexLong
long nextIndexLong()
-
nextIndex
default int nextIndex()
- Specified by:
nextIndexin interfaceListIterator<T>
-
next
T next()
-
hasPrevious
boolean hasPrevious()
- Specified by:
hasPreviousin interfaceListIterator<T>
-
previousIndexLong
long previousIndexLong()
-
previousIndex
default int previousIndex()
- Specified by:
previousIndexin interfaceListIterator<T>
-
previous
T previous()
- Specified by:
previousin interfaceListIterator<T>
-
set
default void set(T object)
- Specified by:
setin interfaceListIterator<T>
-
add
default void add(T object)
- Specified by:
addin interfaceListIterator<T>
-
remove
default void remove()
-
load
default void load()
-
empty
static <T> Cursor<T> empty()
-
unary
static <T> Cursor<T> unary(T value)
-
-