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

com.moengage.operator.DoubleOperation Maven / Gradle / Ivy

There is a newer version: 1.3.7
Show newest version
package com.moengage.operator;

import com.moengage.datatype.MOEDataType;

public class DoubleOperation & MOEDataType> extends BaseOperation {

    public DoubleOperation() {
        super();
    }

    public boolean lessThan(T filterObject, T conditionObject) {
        return filterObject.compareTo(conditionObject) < 0;
    }

    public boolean greaterThan(T filterObject, T conditionObject) {
        return filterObject.compareTo(conditionObject) > 0;
    }

    public boolean between(T filterObject, T conditionObject, T conditionObject1) {
        return equals(filterObject, conditionObject) ||
            (greaterThan(filterObject, conditionObject) && lessThan(filterObject,
                conditionObject1));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy