Package-level declarations
Contains types such as NotEmptyList
for manipulating collections.
Types
Parent of classes representing collections that contain at least one element.
Representation of lists that contain at least one element.
Representation of sets that contain at least one element.
Functions
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.
Creates a NotEmptyList starting with a head and containing all the elements of the optional tail.
Creates a NotEmptyList starting with a head and containing all the elements of the optional tail.
Creates a NotEmptyMap starting with a head and containing all the entries of the optional tail.
Creates a NotEmptySet starting with a head and containing all the elements of the optional tail.
Creates a NotEmptySet starting with a head and containing all the elements of the optional tail.
Returns a NotEmptyList containing all the elements of this array, or throws an IllegalArgumentException if this array is empty.
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 array, or returns the result of calling the defaultValue function if this array 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 array, or returns null
if this array 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 array, or throws an IllegalArgumentException if this array is empty.
Returns a NotEmptyList containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptyMap containing all the entries of this map, or throws a NotEmptyMap.ConstructionError if this map is empty.
Returns a NotEmptyMap containing all the entries of this map, or returns the result of calling the defaultValue function if this map is empty.
Returns a NotEmptyMap containing all the entries of this map, or returns null
if this map is empty.
Returns a NotEmptyMap containing all the entries of this map, or throws an IllegalArgumentException if this map is empty.
Returns a NotEmptySet containing all the elements of this array, or throws an IllegalArgumentException if this array 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 array, or returns the result of calling the defaultValue function if this array 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 array, or returns null
if this array 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 array, or throws an IllegalArgumentException if this array is empty.
Returns a NotEmptySet containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.