io.virtdata.libbasics.shared.stateful.UnsetOrLoad 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.api.VALUE;
import io.virtdata.libbasics.shared.from_long.to_double.HashedDoubleRange;
import java.util.function.LongFunction;
/**
* Reads a long variable from the input, hashes and scales it
* to the unit interval 0.0d - 1.0d, then uses the result to determine whether
* to return UNSET.value or a loaded value.
*/
@ThreadSafeMapper
@Categories({Category.state,Category.nulls})
public class UnsetOrLoad implements LongFunction