ReverseListIterator

Reverse list iterator.

Parameters

<T>

Type to iterate upon.

Constructors

Link copied to clipboard
constructor(@NonNull list: List<T>)
Constructor.
constructor(@NonNull list: List<T>, position: Int)
Constructor.

Functions

Link copied to clipboard
open fun add(@Nullable object: T)
Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard
open fun forEachRemaining(action: Consumer<in E>)
Link copied to clipboard
open fun <U> from(@NonNull list: List<U>): ReverseListIterator<U>
open fun <U> from(@NonNull list: List<U>, position: Int): ReverseListIterator<U>
Create reverse list iterator for a list.
Link copied to clipboard
open fun hasNext(): Boolean
Link copied to clipboard
open fun hasPrevious(): Boolean
Link copied to clipboard
open fun iterator(): Iterator<T>
Link copied to clipboard
open fun next(): T
Link copied to clipboard
open fun nextIndex(): Int
Link copied to clipboard
open fun previous(): T
Link copied to clipboard
open fun previousIndex(): Int
Link copied to clipboard
open fun remove()
Link copied to clipboard
open fun set(@Nullable object: T)
Link copied to clipboard