Package | Description |
---|---|
com.codepoetics.protonpack |
Modifier and Type | Method and Description |
---|---|
default Streamable<T> |
Streamable.concat(Streamable<T> streamable)
Concatenate this streamable with another streamable.
|
static <T> Streamable<T> |
Streamable.empty()
Gets an empty streamable.
|
default Streamable<T> |
Streamable.filter(java.util.function.Predicate<? super T> predicate)
Transform this streamable's streams with the supplied filter predicate.
|
default <T2> Streamable<T2> |
Streamable.flatMap(java.util.function.Function<? super T,java.util.stream.Stream<? extends T2>> f)
Transform this streamable's streams with the supplied flatmap.
|
default Streamable<T> |
Streamable.limit(long n)
Transform this streamable's streams by limiting the number of elements they can contain.
|
default <T2> Streamable<T2> |
Streamable.map(java.util.function.Function<? super T,? extends T2> f)
Transform this streamable's streams with the supplied map.
|
static <T> Streamable<T> |
Streamable.of(Collection<T> collection)
Create a streamable that produces streams over a collection of items.
|
static <T> Streamable<T> |
Streamable.of(Iterable<T> iterable)
Create a streamable that produces streams over an iterable of items.
|
static <T> Streamable<T> |
Streamable.of(Optional<T> optional)
Create a streamable that produces streams of 0 or 1 elements over an optional value.
|
static <T> Streamable<T> |
Streamable.of(java.util.function.Supplier<java.util.stream.Stream<T>> streamable)
For converting method references to no-arg methods that return streams into streamable.
|
static <T> Streamable<T> |
Streamable.of(T... items)
Create a streamable that produces streams over an array of items.
|
static <T> Streamable<T> |
Streamable.ofAll(Streamable<T>... streamables)
Concatenate a series of streamables together.
|
default Streamable<T> |
Streamable.skip(long n)
Transform this streamable's streams by skipping elements
|
default Streamable<T> |
Streamable.sorted(Comparator<? super T> comparator)
Transform this streamable's streams by sorting them.
|
default <T2> Streamable<T2> |
Streamable.transform(java.util.function.Function<java.util.stream.Stream<T>,java.util.stream.Stream<T2>> transformer)
Create a streamable that transforms the streams produced by this streamable with a stream transformer.
|
Modifier and Type | Method and Description |
---|---|
default Streamable<T> |
Streamable.concat(Streamable<T> streamable)
Concatenate this streamable with another streamable.
|
static <T> Streamable<T> |
Streamable.ofAll(Streamable<T>... streamables)
Concatenate a series of streamables together.
|
Copyright © 2015. All rights reserved.