Class StreamMinMax

All Implemented Interfaces:
ZeroLengthBehaviourI, ZeroLengthBehaviourI.DefaultZeroLengthBehaviourI, JepComponent, PostfixMathCommandI, Serializable

Returns the minimum or maximum element from a stream. Uses the Stream.max(Comparator) or Stream.min(Comparator) methods.

By default, if the stream is empty, an exception is thrown, but the behaviour can be configured using the methods of the ZeroLengthBehaviourI interface.

See Also: