NotEmptyMutableList
Represents mutable lists containing at least one element.
Parameters
The type of elements contained in this collection.
Constructors
Creates a not empty mutable list starting with a head and containing all the elements of the optional tail.
Functions
Inserts the element into this list at the specified index, or throws an IndexOutOfBoundsException if the index is out of bounds.
Returns the element at the specified index in this collection, or throws an IndexOutOfBoundsException if the index is out of bounds.
Returns the element at the specified index in this collection, or throws an IndexOutOfBoundsException if the index is out of bounds.
Removes an element at the specified index from the list, or throws an IndexOutOfBoundsException if the index is out of bounds.
Removes an element at the specified index from the list, or returns null
if the index is out of bounds.
Replaces the element at the specified index in this list with the specified element, or throws an IndexOutOfBoundsException if the index is out of bounds.
Returns the string representation of this collection as a not blank string.
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 not empty list containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a not empty list containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a not empty list containing all the elements of this collection, or returns null
if this collection is empty.
Returns a not empty mutable list containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a not empty mutable list containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a not empty mutable list containing all the elements of this collection, or returns null
if this collection is empty.
Returns a not empty mutable set containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a not empty mutable set containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a not empty mutable set containing all the elements of this collection, or returns null
if this collection is empty.
Returns a not empty set containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a not empty set containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a not empty set containing all the elements of this collection, or returns null
if this collection is empty.