NotEmptyMutableSet
Represents mutable sets containing at least one element.
Parameters
The type of elements contained in this collection.
Constructors
Creates a not empty mutable set starting with a head and containing all the elements of the optional tail.
Functions
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.
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.