All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.heliorm.def.FloatField 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 float value
 *
 * @param  Object type
 * @author gideon
 */
public interface FloatField< O> extends Field, WithRange< O, Float>, WithEquals, WithIn, WithIs {

    default Continuation lt(Integer value) throws OrmException {
        return lt(value.floatValue());
    }

    default Continuation le(Integer value) throws OrmException {
        return le(value.floatValue());
    }

    default Continuation gt(Integer value) throws OrmException {
        return gt(value.floatValue());
    }

    default Continuation ge(Integer value) throws OrmException {
        return ge(value.floatValue());
    }

    default Continuation eq(Integer value) throws OrmException {
        return eq(value.floatValue());
    }

    default Continuation notEq(Integer value) throws OrmException {
        return notEq(value.floatValue());
    }

    default Continuation in(Integer... values) throws OrmException {
        return in(Arrays.stream(values).map(Integer::floatValue).collect(Collectors.toList()));
    }

    default Continuation notIn(Integer... values) throws OrmException {
        return notIn(Arrays.stream(values).map(Integer::floatValue).collect(Collectors.toList()));
    }

    default Continuation lt(Long value) throws OrmException {
        return lt(value.floatValue());
    }

    default Continuation le(Long value) throws OrmException {
        return le(value.floatValue());
    }

    default Continuation gt(Long value) throws OrmException {
        return gt(value.floatValue());
    }

    default Continuation ge(Long value) throws OrmException {
        return ge(value.floatValue());
    }

    default Continuation eq(Long value) throws OrmException {
        return eq(value.floatValue());
    }

    default Continuation notEq(Long value) throws OrmException {
        return notEq(value.floatValue());
    }

    default Continuation in(Long... values) throws OrmException {
        return in(Arrays.stream(values).map(Long::floatValue).collect(Collectors.toList()));
    }

    default Continuation notIn(Long... values) throws OrmException {
        return notIn(Arrays.stream(values).map(Long::floatValue).collect(Collectors.toList()));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy