Class ModuloToInteger
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_int.ModuloToInteger
- All Implemented Interfaces:
java.util.function.LongFunction<java.lang.Integer>
public class ModuloToInteger
extends java.lang.Object
implements java.util.function.LongFunction<java.lang.Integer>
Return an integer value as the result of modulo division with the specified divisor.
-
Constructor Summary
Constructors Constructor Description ModuloToInteger(int modulo) -
Method Summary
Modifier and Type Method Description java.lang.Integerapply(long operand)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ModuloToInteger
public ModuloToInteger(int modulo)
-
-
Method Details
-
apply
public java.lang.Integer apply(long operand)- Specified by:
applyin interfacejava.util.function.LongFunction<java.lang.Integer>
-