com.moengage.operator.DoubleOperation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of condition-evaluator Show documentation
Show all versions of condition-evaluator Show documentation
Condition Evaluator for MoEngage Platform
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));
}
}