io.nosqlbench.virtdata.library.basics.shared.from_double.to_unset.UnsetIfWithin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-curves4 Show documentation
Show all versions of virtdata-lib-curves4 Show documentation
Statistical sampling library for use in virtdata libraries, based
on apache commons math 4
package io.nosqlbench.virtdata.library.basics.shared.from_double.to_unset;
import io.nosqlbench.virtdata.api.annotations.Categories;
import io.nosqlbench.virtdata.api.annotations.Category;
import io.nosqlbench.virtdata.api.annotations.ThreadSafeMapper;
import io.nosqlbench.virtdata.api.bindings.VALUE;
import java.util.function.DoubleFunction;
/**
* Yields UNSET.value if the input value is within the specified
* range, inclusive. Otherwise, passes the original value along.
*/
@ThreadSafeMapper
@Categories(Category.nulls)
public class UnsetIfWithin implements DoubleFunction