ListType

interface ListType<T, CT : ListType<T, CT, MCT>, MCT : MutableListType<T, CT, MCT>> : List<T> (source)

A type for an own List implementation.

Inheritors

Properties

Link copied to clipboard
abstract override val size: Int

Functions

Link copied to clipboard
abstract operator override fun contains(element: T): Boolean
Link copied to clipboard
abstract override fun containsAll(elements: Collection<T>): Boolean
Link copied to clipboard
abstract operator fun get(index: Int): T
Link copied to clipboard
abstract fun indexOf(element: T): Int
Link copied to clipboard
abstract override fun isEmpty(): Boolean
Link copied to clipboard
abstract operator override fun iterator(): Iterator<T>
Link copied to clipboard
abstract fun lastIndexOf(element: T): Int
Link copied to clipboard
abstract fun listIterator(): ListIterator<T>
abstract fun listIterator(index: Int): ListIterator<T>
Link copied to clipboard
abstract fun subList(fromIndex: Int, toIndex: Int): List<T>
Link copied to clipboard
abstract fun toCollection(): CT

Create a new List from this List.

Link copied to clipboard
abstract fun toMutableCollection(): MCT

Create a new MutableCollection from this Collection.