Class Clamp
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_long.Clamp
- All Implemented Interfaces:
LongUnaryOperator
Clamp the output values to be at least the minimum value and
at most the maximum value.
-
Constructor Details
-
Clamp
public Clamp(long min, long max)
-
-
Method Details
-
applyAsLong
public long applyAsLong(long operand) - Specified by:
applyAsLongin interfaceLongUnaryOperator
-