List
A read-only ordered collection with zero-based indexed access.
Lists may contain duplicate elements. Read-only access does not make the underlying object immutable; aliases of ArrayList observe its mutations. Nullable element types may store null.
Type Parameters
element type.
See also
Inheritors
Properties
Functions
Returns the first element, or null when this iterable is empty.
Returns the first element, or null when this list is empty.
Returns the first matching element, or null when no element matches predicate.
Checks whether this collection contains at least one element.
Returns the index of the last element equal to element.
Returns the last element, or null when this iterable is empty.
Returns the last element, or null when this list is empty.
Returns the last matching element after traversing this iterable in iteration order.
Returns the last element satisfying predicate, or null when no element matches.
Appends non-null transformed elements to destination in iteration order.