static <T> Sequence<T> |
Sequence.empty() |
|
static <T> Sequence<T> |
Sequence.of(Collection<? extends T> elements) |
|
static <T> Sequence<T> |
Sequence.of(T... elements) |
Creates a new Sequence with the given elements.
|
Sequence<T> |
Sequence.with(Collection<T> elements) |
Returns a new Sequence concatenated with the given elements.
|
Sequence<T> |
Sequence.with(Sequence<T> sequence) |
Returns a new Sequence concatenated with the given sequence of elements.
|
Sequence<T> |
Sequence.with(T... newElements) |
Returns a new Sequence concatenated with the given elements.
|
Sequence<T> |
Sequence.withIf(boolean condition,
Supplier<T> supplier) |
Returns a new Sequence concatenated with the element produced by the given
Supplier if the condition is true.
|
Sequence<T> |
Sequence.withIf(boolean condition,
Supplier<T>... suppliers) |
Returns a new Sequence concatenated with the elements produced by the given
Suppliers if the condition is true.
|
Sequence<T> |
Sequence.withNewElementsFrom(Collection<T> elements) |
Returns a new Sequence concatenated with those of the given elements that are not already
contained in this Sequence.
|