ListBase

abstract class ListBase<T, CT : ListType<T, CT, MCT>, MCT : MutableListType<T, CT, MCT>>(val list: List<T>) : ListType<T, CT, MCT> , List<T> (source)

A base API class for an implementation of ListType

Inheritors

Constructors

Link copied to clipboard
constructor(list: List<T>)

Properties

Link copied to clipboard
val list: List<T>

The List to create the ListBase from

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open operator override fun contains(element: T): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<T>): Boolean
Link copied to clipboard
open operator override fun get(index: Int): T
Link copied to clipboard
open override fun indexOf(element: T): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<T>
Link copied to clipboard
open override fun lastIndexOf(element: T): Int
Link copied to clipboard
open override fun listIterator(): ListIterator<T>
open override fun listIterator(index: Int): ListIterator<T>
Link copied to clipboard
open override 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.