Number Stream
The NumberStream
is a Stream
that provides number-related methods.
add()
Returns a NumberStream
that adds the given value to the produced output.
Parameter
Type
Default
Description
value
Number
value
multiply()
Returns a NumberStream
that multiplies the given value with the produced output.
Parameter
Type
Default
Description
value
Number
value
subtract()
Returns a NumberStream
that subtracts the given value from the produced output.
Parameter
Type
Default
Description
value
Number
value
divide()
Returns a NumberStream
that divides the produced output to the given value.
Parameter
Type
Default
Description
value
Number
value
mode()
Returns a NumberStream
that calculates the mode of the produced value with the given value.
Parameter
Type
Default
Description
value
Number
value
Last updated