-
- All Implemented Interfaces:
-
kotlin.collections.Collection,kotlin.collections.Iterable,kotlin.collections.List
public final class CursorList<E extends Object> implements List<E>
-
-
Constructor Summary
Constructors Constructor Description CursorList(List<E> list, Integer index)
-
Method Summary
Modifier and Type Method Description final BooleanhasPrevious()final Eprevious()Moves the cursor backward and returns the element, or null when reaching the beginning. final BooleanhasNext()final Enext()Moves the cursor forward and returns the element, or null when reaching the end. -
Methods inherited from class kotlin.collections.List
contains, containsAll, get, getSize, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, spliterator, subList -
Methods inherited from class kotlin.collections.Iterable
forEach -
Methods inherited from class kotlin.collections.Collection
parallelStream, stream, toArray -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CursorList
CursorList(List<E> list, Integer index)
- Parameters:
list- the content of the CursorListindex- the index of the element that will initially be considered as the last returned element.
-
-
Method Detail
-
hasPrevious
final Boolean hasPrevious()
-
previous
final E previous()
Moves the cursor backward and returns the element, or null when reaching the beginning.
-
-
-
-