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 theStreamto be equal to each other according toObjects.equals(Object, Object).
AReductionExceptionwill be thrown during reduction if one or more of the values in theStreamare 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 theStreamto be equal to each other according toObjects.equals(Object, Object).
AReductionExceptionwill be thrown during reduction if one or more of the values in theStreamare not equal according toObjects.equals(Object, Object).
-