io.virtdata.libbasics.shared.from_long.to_other.NullIfLt Maven / Gradle / Ivy
package io.virtdata.libbasics.shared.from_long.to_other;
import io.virtdata.annotations.Categories;
import io.virtdata.annotations.Category;
import io.virtdata.annotations.ThreadSafeMapper;
import java.util.function.LongFunction;
@ThreadSafeMapper
@Categories(Category.nulls)
public class NullIfLt implements LongFunction {
private final long compareto;
public NullIfLt(long compareto) {
this.compareto = compareto;
}
@Override
public Long apply(long value) {
if (value < compareto) return null;
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy