BaseDataList

Constructors

Link copied to clipboard
constructor()
constructor(initialCapacity: Int)
constructor(elements: Collection<T>)

Properties

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open override fun add(element: T): Boolean
open override fun add(index: Int, element: T)
Link copied to clipboard
open override fun addAll(elements: Collection<T>): Boolean
open override fun addAll(index: Int, elements: Collection<T>): Boolean
Link copied to clipboard
open override fun clear()
Link copied to clipboard
open override fun clone(): Any
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 fun ensureCapacity(p0: Int)
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun first(): T

Returns the first element, or throws an exception if the list is empty. None-unique results may cause unexpected problems and are not recommended.

fun first(predicate: (T) -> Boolean): T

Returns the first element matching the given predicate, or throws an exception if no such element was found. None-unique results may cause unexpected problems and are not recommended.

Link copied to clipboard
fun firstOrNull(): T?

Returns the first element, or null if the list is empty. None-unique results may cause unexpected problems and are not recommended.

fun firstOrNull(predicate: (T) -> Boolean): T?

Returns the first element matching the given predicate, or null if no such element was found. None-unique results may cause unexpected problems and are not recommended.

Link copied to clipboard
fun firstOrThrow(exceptionSupplier: () -> Throwable): T

Returns the first element, or throws the specified exception if the list is empty. None-unique results may cause unexpected problems and are not recommended.

Link copied to clipboard
open override fun forEach(p0: Consumer<in T>)
Link copied to clipboard
open operator override fun get(index: Int): T
Link copied to clipboard
open override fun hashCode(): Int
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(): MutableIterator<T>
Link copied to clipboard
open override fun lastIndexOf(element: T): Int
Link copied to clipboard
open override fun listIterator(): MutableListIterator<T>
open override fun listIterator(index: Int): MutableListIterator<T>
Link copied to clipboard
open fun parallelStream(): Stream<T>
Link copied to clipboard
open override fun remove(element: T): Boolean
Link copied to clipboard
open override fun removeAll(elements: Collection<T>): Boolean
Link copied to clipboard
open override fun removeAt(p0: Int): T
Link copied to clipboard
open override fun removeIf(p0: Predicate<in T>): Boolean
Link copied to clipboard
open override fun replaceAll(p0: UnaryOperator<T>)
Link copied to clipboard
open override fun retainAll(elements: Collection<T>): Boolean
Link copied to clipboard
open operator override fun set(index: Int, element: T): T
Link copied to clipboard
fun single(): T

Returns the first element, or throws an exception if the list length is not 1.

----------------

fun single(predicate: (T) -> Boolean): T

Returns the first element matching the given predicate, or throws an exception if no such element was found.

----------------

Link copied to clipboard
fun singleOrNull(): T?

Returns the first element, or null if the list length is not 1.

----------------

fun singleOrNull(predicate: (T) -> Boolean): T?

Returns the first element matching the given predicate, or null if no such element was found.

----------------

Link copied to clipboard
fun singleOrThrow(exceptionSupplier: () -> Throwable): T

Returns the first element, or throws the specified exception if the list length is not 1.

----------------

Link copied to clipboard
open override fun sort(p0: Comparator<in T>)
Link copied to clipboard
open override fun spliterator(): Spliterator<T>
Link copied to clipboard
open fun stream(): Stream<T>
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): MutableList<T>
Link copied to clipboard
open override fun toArray(): Array<Any>
open override fun <T : Any> toArray(p0: Array<T>): Array<T>
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun trimToSize()