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

org.joo.libra.numeric.LessEqualPredicate Maven / Gradle / Ivy

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 less than or equals to predicate
 * 
 * @author griever
 *
 */
public class LessEqualPredicate extends BinaryPredicate {

	public LessEqualPredicate(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;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy