Class FixedValues
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_long.FixedValues
- All Implemented Interfaces:
java.util.function.LongUnaryOperator
public class FixedValues
extends java.lang.Object
implements java.util.function.LongUnaryOperator
Yield one of the specified values, rotating through them as the input value
increases.
-
Constructor Summary
Constructors Constructor Description FixedValues(long... values) -
Method Summary
Modifier and Type Method Description longapplyAsLong(long value)
-
Constructor Details
-
FixedValues
public FixedValues(long... values)
-
-
Method Details
-
applyAsLong
public long applyAsLong(long value)- Specified by:
applyAsLongin interfacejava.util.function.LongUnaryOperator
-