public interface BaseStream
GDK enhancements for BaseStream.
| Type Params | Return Type | Name and description |
|---|---|---|
<T> |
public List<T> |
toImmutableList()Accumulates the elements of stream into an immutable List. |
<T> |
public Set<T> |
toImmutableSet()Accumulates the elements of stream into an immutable Set. |
<T> |
public List<T> |
toList()Accumulates the elements of stream into a new List. |
<T> |
public List<T> |
toMutableList()Accumulates the elements of stream into a new mutable List. |
<T> |
public Set<T> |
toMutableSet()Accumulates the elements of stream into a new mutable Set. |
<T> |
public Set<T> |
toSet()Accumulates the elements of stream into a new Set. |
Accumulates the elements of stream into an immutable List.
T - the type of elementjava.util.List instanceAccumulates the elements of stream into an immutable Set.
See Stream.toImmutableSet for the null-tolerance and empty-set semantics — this overload is the BaseStream counterpart with the same contract.
T - the type of elementjava.util.Set instanceAccumulates the elements of stream into a new List.
T - the type of elementjava.util.List instanceAccumulates the elements of stream into a new mutable List.
Explicit-mutability alias for BaseStream.toList, symmetric with Stream.toMutableList.
T - the type of elementjava.util.List instanceAccumulates the elements of stream into a new mutable Set.
Explicit-mutability alias for BaseStream.toSet, symmetric with Stream.toMutableSet.
T - the type of elementjava.util.Set instanceAccumulates the elements of stream into a new Set.
T - the type of elementjava.util.Set instance