Class UnsetIfWithin
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_double.to_unset.UnsetIfWithin
- All Implemented Interfaces:
java.util.function.DoubleFunction<java.lang.Object>
public class UnsetIfWithin
extends java.lang.Object
implements java.util.function.DoubleFunction<java.lang.Object>
Yields UNSET.value if the input value is within the specified
range, inclusive. Otherwise, passes the original value along.
-
Constructor Summary
Constructors Constructor Description UnsetIfWithin(double min, double max) -
Method Summary
Modifier and Type Method Description java.lang.Objectapply(double value)
-
Constructor Details
-
UnsetIfWithin
public UnsetIfWithin(double min, double max)
-
-
Method Details
-
apply
public java.lang.Object apply(double value)- Specified by:
applyin interfacejava.util.function.DoubleFunction<java.lang.Object>
-