com.evuv.operators.SmallerThanOperator Maven / Gradle / Ivy
package com.evuv.operators;
import com.evuv.expressions.ComparableExpression;
public class SmallerThanOperator implements Operator, T> {
@Override
public boolean op(ComparableExpression left, ComparableExpression right) {
if (left.getValue() != null && right.getValue() != null) {
return left.compareTo(right.getValue()) < 0;
}
return false;
}
@Override
public String toString(){
return "<";
}
}