ValidatableList

class ValidatableList<T>(val values: List<T>) : List<T>

Constructors

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

Properties

Link copied to clipboard
open override val size: Int
Link copied to clipboard
val values: List<T>

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
inline fun <T> Iterable<T>.eighth(): T

Returns eighth element.

Link copied to clipboard
inline fun <T> Iterable<T>.eighthOrNull(): T?
Link copied to clipboard
inline fun <T> Iterable<T>.fifth(): T

Returns fifth element.

Link copied to clipboard
inline fun <T> Iterable<T>.fifthOrNull(): T?
Link copied to clipboard
inline fun <T> Iterable<T>.forth(): T

Returns forth element.

Link copied to clipboard
inline fun <T> Iterable<T>.forthOrNull(): T?
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
operator fun invoke(block: T.() -> Unit)
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
inline fun <T> Iterable<T>.ninth(): T

Returns ninth element.

Link copied to clipboard
inline fun <T> Iterable<T>.ninthOrNull(): T?
Link copied to clipboard
inline fun <T> Iterable<T>.penultimate(): T

Returns penultimate element.

Link copied to clipboard
inline fun <T> Iterable<T>.penultimateOrNull(): T?
Link copied to clipboard

Remove all consecutive line breaks in a list of String

Link copied to clipboard
inline fun <T> Iterable<T>.second(): T

Returns second element.

Link copied to clipboard
inline fun <T> Iterable<T>.secondOrNull(): T?
Link copied to clipboard
inline fun <T> Iterable<T>.seventh(): T

Returns seventh element.

Link copied to clipboard
inline fun <T> Iterable<T>.seventhOrNull(): T?
Link copied to clipboard
inline fun <T> Iterable<T>.sixth(): T

Returns sixth element.

Link copied to clipboard
inline fun <T> Iterable<T>.sixthOrNull(): T?
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): List<T>
Link copied to clipboard
inline fun <T> Iterable<T>.tenth(): T

Returns tenth element.

Link copied to clipboard
inline fun <T> Iterable<T>.tenthOrNull(): T?
Link copied to clipboard
inline fun <T> Iterable<T>.third(): T

Returns third element.

Link copied to clipboard
inline fun <T> Iterable<T>.thirdOrNull(): T?