com.heliorm.def.DoubleField Maven / Gradle / Ivy
The newest version!
package com.heliorm.def;
import com.heliorm.Field;
import com.heliorm.OrmException;
import java.util.Arrays;
import java.util.stream.Collectors;
/**
* A field representing a double value
*
* @param Object type
* @author gideon
*/
public interface DoubleField< O> extends Field, WithRange, WithEquals, WithIn, WithIs {
default Continuation lt(Integer value) throws OrmException {
return lt(value.doubleValue());
}
default Continuation le(Integer value) throws OrmException {
return le(value.doubleValue());
}
default Continuation gt(Integer value) throws OrmException {
return gt(value.doubleValue());
}
default Continuation ge(Integer value) throws OrmException {
return ge(value.doubleValue());
}
default Continuation eq(Integer value) throws OrmException {
return eq(value.doubleValue());
}
default Continuation notEq(Integer value) throws OrmException {
return notEq(value.doubleValue());
}
default Continuation in(Integer... values) throws OrmException {
return in(Arrays.stream(values).map(Integer::doubleValue).collect(Collectors.toList()));
}
default Continuation notIn(Integer... values) throws OrmException {
return notIn(Arrays.stream(values).map(Integer::doubleValue).collect(Collectors.toList()));
}
default Continuation lt(Long value) throws OrmException {
return lt(value.doubleValue());
}
default Continuation le(Long value) throws OrmException {
return le(value.doubleValue());
}
default Continuation gt(Long value) throws OrmException {
return gt(value.doubleValue());
}
default Continuation ge(Long value) throws OrmException {
return ge(value.doubleValue());
}
default Continuation eq(Long value) throws OrmException {
return eq(value.doubleValue());
}
default Continuation notEq(Long value) throws OrmException {
return notEq(value.doubleValue());
}
default Continuation in(Long... values) throws OrmException {
return in(Arrays.stream(values).map(Long::doubleValue).collect(Collectors.toList()));
}
default Continuation notIn(Long... values) throws OrmException {
return notIn(Arrays.stream(values).map(Long::doubleValue).collect(Collectors.toList()));
}
}