NotEmptyList
Deprecated
Use the kotools.types.NotEmptyList type instead.
Replace with
import kotools.types.NotEmptyList
NotEmptyList
Representation of lists that contain at least one element.
Parameters
The type of elements contained in this list.
Functions
Returns the element at the specified index in this collection, or throws an IndexOutOfBoundsException if the index is out of bounds.
Returns the string representation of this collection as a NotBlankString.
Properties
Extensions
Returns the element at the specified index in this collection, or returns the result of calling the defaultValue function if the index is out of bounds.
Returns a NotEmptyList containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or an IllegalArgumentException if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or returns null
if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or an IllegalArgumentException if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or returns null
if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.