Package com.github.mizool.core
Class Streams
java.lang.Object
com.github.mizool.core.Streams
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> BinaryOperator<T>
Accumulator forStream.reduce(BinaryOperator)
that expects all values of theStream
to be equal to each other according toObjects.equals(Object, Object)
.
AReductionException
will be thrown during reduction if one or more of the values in theStream
are not equal according toObjects.equals(Object, Object)
.static <T> Stream<T>
static <T> Stream<T>
sequential
(Iterable<T> iterable)
-
Method Details
-
sequential
-
parallel
-
expectingEqualValues
Accumulator forStream.reduce(BinaryOperator)
that expects all values of theStream
to be equal to each other according toObjects.equals(Object, Object)
.
AReductionException
will be thrown during reduction if one or more of the values in theStream
are not equal according toObjects.equals(Object, Object)
.
-