Package-level declarations
Contains types such as NotEmptyList
for manipulating collections.
Types
Representation of collections containing at least one element of type E.
Represents a list with at least one element of type E.
Represents a set with at least one element of type E.
Functions
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.
Returns an encapsulated NotEmptyList containing all the elements of this collection, or returns an encapsulated IllegalArgumentException 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 an encapsulated NotEmptyMap containing all the entries of this map, or returns an encapsulated IllegalArgumentException 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 an encapsulated NotEmptySet containing all the elements of this collection, or returns an encapsulated IllegalArgumentException 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.
Properties
Returns the size of this collection, or returns ZeroInt if this collection is null
.