io.virtdata.conversions.from_double.ToBoolean Maven / Gradle / Ivy
package io.virtdata.conversions.from_double;
import io.virtdata.annotations.ThreadSafeMapper;
import java.util.function.Function;
@ThreadSafeMapper
public class ToBoolean implements Function {
@Override
public Boolean apply(Double input) {
return ((input.longValue()) & 1) == 1;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy