org.deri.iris.builtins
Class LessEqualBuiltin
java.lang.Object
org.deri.iris.builtins.AbstractBuiltin
org.deri.iris.builtins.BooleanBuiltin
org.deri.iris.builtins.LessEqualBuiltin
- All Implemented Interfaces:
- Comparable<IAtom>, IAtom, IBuiltinAtom
- Direct Known Subclasses:
- DateLessEqualBuiltin, DateTimeLessEqualBuiltin, DayTimeDurationLessEqualBuiltin, NumericLessEqualBuiltin, TimeLessEqualBuiltin, YearMonthDurationLessEqualBuiltin
public class LessEqualBuiltin
- extends BooleanBuiltin
Builtin to compare two terms.
|
Method Summary |
protected boolean |
computeResult(ITerm[] terms)
Compute the result of the comparison. |
LessEqualBuiltin
protected LessEqualBuiltin(IPredicate predicate,
ITerm... terms)
- Construct a new LessEqualBuiltin for the specific predicate and terms.
- Parameters:
predicate - The predicate of the built-in.terms - The terms.
- Throws:
NullPointerException - If the predicate or one of the terms is
null.
IllegalArgumentException - If the length of the terms and the arity
of the predicate do not match.
LessEqualBuiltin
public LessEqualBuiltin(ITerm... terms)
- Constructor.
- Parameters:
terms - The terms, must be of length 2
- Throws:
NullPointerException - If the predicate or one of the terms is
null.
IllegalArgumentException - If the length of the terms and the arity
of the predicate do not match.
computeResult
protected boolean computeResult(ITerm[] terms)
- Description copied from class:
BooleanBuiltin
- Compute the result of the comparison.
- Specified by:
computeResult in class BooleanBuiltin
- Parameters:
terms - The terms
- Returns:
- The result of the comparison.