Package io.camunda.zeebe.util
Class StreamUtil
java.lang.Object
io.camunda.zeebe.util.StreamUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Collector<T, StreamUtil.MinMaxCollector.MinMax<T>, StreamUtil.MinMaxCollector.MinMax<T>> minMax(Comparator<T> comparator) Returns a collector that computes the minimum and maximum of a stream of elements according to the provided comparator.
-
Method Details
-
minMax
public static <T> Collector<T,StreamUtil.MinMaxCollector.MinMax<T>, minMaxStreamUtil.MinMaxCollector.MinMax<T>> (Comparator<T> comparator) Returns a collector that computes the minimum and maximum of a stream of elements according to the provided comparator.
-