ListIterator

interface ListIterator<out T> : Iterator<T> (source)

An iterator over a collection that supports indexed access.

Since Kotlin

1.0
interface ListIterator<out T> : Iterator<T> (source)

An iterator over a collection that supports indexed access.

Since Kotlin

1.1

See also

Functions

Link copied to clipboard
abstract operator override fun hasNext(): Boolean

Returns true if the iteration has more elements.

Since Kotlin 1.0
abstract operator override fun hasNext(): Boolean

Returns true if the iteration has more elements.

Since Kotlin 1.1
Link copied to clipboard
abstract fun hasPrevious(): Boolean

Returns true if there are elements in the iteration before the current element.

Since Kotlin 1.0
abstract fun hasPrevious(): Boolean

Returns true if there are elements in the iteration before the current element.

Since Kotlin 1.1
Link copied to clipboard
abstract operator override fun next(): T

Returns the next element in the iteration.

Since Kotlin 1.0
abstract operator override fun next(): T

Returns the next element in the iteration.

Since Kotlin 1.1
Link copied to clipboard
abstract fun nextIndex(): Int

Returns the index of the element that would be returned by a subsequent call to next.

Since Kotlin 1.0
abstract fun nextIndex(): Int

Returns the index of the element that would be returned by a subsequent call to next.

Since Kotlin 1.1
Link copied to clipboard
abstract fun previous(): T

Returns the previous element in the iteration and moves the cursor position backwards.

Since Kotlin 1.0
abstract fun previous(): T

Returns the previous element in the iteration and moves the cursor position backwards.

Since Kotlin 1.1
Link copied to clipboard
abstract fun previousIndex(): Int

Returns the index of the element that would be returned by a subsequent call to previous.

Since Kotlin 1.0
abstract fun previousIndex(): Int

Returns the index of the element that would be returned by a subsequent call to previous.

Since Kotlin 1.1

Inheritors

Link copied to clipboard