io.virtdata.libbasics.shared.stateful.NullOrPass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
package io.virtdata.libbasics.shared.stateful;
import io.virtdata.annotations.Categories;
import io.virtdata.annotations.Category;
import io.virtdata.annotations.ThreadSafeMapper;
import io.virtdata.libbasics.core.threadstate.SharedState;
import io.virtdata.libbasics.shared.from_long.to_double.HashedDoubleRange;
import java.util.function.Function;
/**
* Reads a long variable from the thread local variable map, hashes and scales it
* to the unit interval 0.0d - 1.0d, then uses the result to determine whether
* to return a null object or the input value.
*/
@ThreadSafeMapper
@Categories({Category.state,Category.nulls})
public class NullOrPass implements Function