AbstractList

abstract class AbstractList<out E> : AbstractCollection<E> , List<E>

Provides a skeletal implementation of the read-only List interface.

This class is intended to help implementing read-only lists so it doesn't support concurrent modification tracking.

Since Kotlin

1.1

Parameters

E

the type of elements contained in the list. The list is covariant in its element type.

Functions

contains
Link copied to clipboard
open operator override fun contains(element: E): Boolean
containsAll
Link copied to clipboard
open override fun containsAll(elements: Collection<E>): Boolean
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this list with other list instance with the ordered structural equality.

get
Link copied to clipboard
abstract operator override fun get(index: Int): E
hashCode
Link copied to clipboard
open override fun hashCode(): Int

Returns the hash code value for this list.

indexOf
Link copied to clipboard
open override fun indexOf(element: @UnsafeVariance E): Int
isEmpty
Link copied to clipboard
open override fun isEmpty(): Boolean
iterator
Link copied to clipboard
open operator override fun iterator(): Iterator<E>
lastIndexOf
Link copied to clipboard
open override fun lastIndexOf(element: @UnsafeVariance E): Int
listIterator
Link copied to clipboard
open override fun listIterator(): ListIterator<E>
open override fun listIterator(index: Int): ListIterator<E>
subList
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): List<E>
toString
Link copied to clipboard
open override fun toString(): String

Properties

size
Link copied to clipboard
abstract override val size: Int