Class Streams
java.lang.Object
ch.tocco.nice2.toolbox.api.stream.Streams
This class contains convenience methods to be able to migrate 
Iterables
 usages efficiently.- 
Method Summary
Modifier and TypeMethodDescriptionstatic <E> Predicate<E> static <E> Predicate<E> byteStream(byte[] array) static <P> UnaryOperator<P> consumeAndReturnIdentity(Consumer<P> consumer) static <E> List<E> static <E,C extends Collection<E>> 
Cstatic <E> Estatic <E> Estatic <E> Predicate<E> static <E> Predicate<E> static <E> Stream<E> static <E> Stream<E> static <E,R> List <R> static <E,R, C extends Collection<R>> 
C 
- 
Method Details
- 
and
 - 
and
 - 
or
 - 
or
 - 
stream
 - 
stream
 - 
filter
 - 
filter
public static <E,C extends Collection<E>> C filter(Iterable<? extends E> iterable, Predicate<? super E> predicate, Collector<E, ?, C> collector)  - 
transform
 - 
transform
public static <E,R, C transformC extends Collection<R>> (Iterable<E> iterable, Function<E, R> function, Collector<R, ?, C> collector)  - 
find
 - 
find
 - 
consumeAndReturnIdentity
 - 
byteStream
 
 -