-
- 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 void
add(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()
boolean
hasNext()
boolean
hasPrevious()
T
head()
boolean
isEmpty()
static <K> Cursor<K>
keys(Cursor<? extends Map.Entry<? extends K,?>> entries)
default void
load()
T
next()
default int
nextIndex()
long
nextIndexLong()
T
previous()
default int
previousIndex()
long
previousIndexLong()
default void
remove()
default void
set(T object)
void
skip(long count)
void
step()
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:
nextIndex
in interfaceListIterator<T>
-
next
T next()
-
hasPrevious
boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceListIterator<T>
-
previousIndexLong
long previousIndexLong()
-
previousIndex
default int previousIndex()
- Specified by:
previousIndex
in interfaceListIterator<T>
-
previous
T previous()
- Specified by:
previous
in interfaceListIterator<T>
-
set
default void set(T object)
- Specified by:
set
in interfaceListIterator<T>
-
add
default void add(T object)
- Specified by:
add
in interfaceListIterator<T>
-
remove
default void remove()
-
load
default void load()
-
empty
static <T> Cursor<T> empty()
-
unary
static <T> Cursor<T> unary(T value)
-
-