org.joo.libra.numeric.GreaterEqualPredicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of joo-libra Show documentation
Show all versions of joo-libra Show documentation
Java Predicate with SQL-like syntax support
package org.joo.libra.numeric;
import org.joo.libra.common.BinaryPredicate;
import org.joo.libra.common.HasValue;
import org.joo.libra.support.NumericComparator;
/**
* Represents a numeric greater than or equals to
predicate
*
* @author griever
*
*/
public class GreaterEqualPredicate extends BinaryPredicate {
public GreaterEqualPredicate(final HasValue one, final HasValue other) {
super(one, other);
}
@Override
protected boolean doSatisifiedBy(final Number one, final Number other) {
return NumericComparator.compare(one, other) >= 0;
}
}