Class HStream
- java.lang.Object
-
- com.g2forge.alexandria.java.core.helpers.HStream
-
public final class HStream extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Stream<T>
concat(Stream<? extends T>... streams)
static <T> T
findOne(Stream<? extends T> stream)
static <T> T
findOneOptional(Stream<? extends T> stream, ISupplier<T> ifNone)
static <I,O>
Oiterate(Stream<? extends I> stream, O initial, BiFunction<? super I,? super O,? extends O> mutate)
static <I0,I1,O>
Stream<O>product(BiFunction<I0,I1,O> aggregator, Supplier<Stream<I0>> stream0, Supplier<Stream<I1>> stream1)
static <T> Stream<T>
product(BinaryOperator<T> aggregator, Supplier<Stream<T>>... streams)
static <T> Stream<T>
subtype(Stream<?> stream, Class<T> subtype)
static <T> Iterable<T>
toIterable(Stream<T> stream)
static <T> Collection<T>
toList(Iterator<T> iterator, Supplier<? extends Collection<T>> constructor)
static <T> Stream<T>
toStream(Supplier<T> supplier)
static <T> Stream<T>
toStream(Iterator<T> iterator)
static <T> Stream<? extends ITuple2G_<Integer,T>>
toStreamIndexed(List<? extends T> list)
static <I0,I1,O>
Stream<O>zip(Stream<? extends I0> stream0, Stream<? extends I1> stream1, BiFunction<? super I0,? super I1,? extends O> func)
-
-
-
Method Detail
-
concat
@SafeVarargs public static <T> Stream<T> concat(Stream<? extends T>... streams)
-
findOne
public static <T> T findOne(Stream<? extends T> stream)
-
findOneOptional
public static <T> T findOneOptional(Stream<? extends T> stream, ISupplier<T> ifNone)
-
iterate
public static <I,O> O iterate(Stream<? extends I> stream, O initial, BiFunction<? super I,? super O,? extends O> mutate)
-
product
public static <I0,I1,O> Stream<O> product(BiFunction<I0,I1,O> aggregator, Supplier<Stream<I0>> stream0, Supplier<Stream<I1>> stream1)
-
product
@SafeVarargs public static <T> Stream<T> product(BinaryOperator<T> aggregator, Supplier<Stream<T>>... streams)
-
toList
public static <T> Collection<T> toList(Iterator<T> iterator, Supplier<? extends Collection<T>> constructor)
-
toStreamIndexed
public static <T> Stream<? extends ITuple2G_<Integer,T>> toStreamIndexed(List<? extends T> list)
-
zip
public static <I0,I1,O> Stream<O> zip(Stream<? extends I0> stream0, Stream<? extends I1> stream1, BiFunction<? super I0,? super I1,? extends O> func)
-
-