org.deri.iris.builtins
Class GreaterEqualBuiltin
java.lang.Object
org.deri.iris.builtins.AbstractBuiltin
org.deri.iris.builtins.BooleanBuiltin
org.deri.iris.builtins.GreaterEqualBuiltin
- All Implemented Interfaces:
- Comparable<IAtom>, IAtom, IBuiltinAtom
- Direct Known Subclasses:
- DateGreaterEqualBuiltin, DateTimeGreaterEqualBuiltin, DayTimeDurationGreaterEqualBuiltin, NumericGreaterEqualBuiltin, TimeGreaterEqualBuiltin, YearMonthDurationGreaterEqualBuiltin
public class GreaterEqualBuiltin
- extends BooleanBuiltin
Built-in to compare two terms and determine which one is bigger or if they are
equal.
$Id: GreaterEqualBuiltin.java,v 1.15 2007-10-12 12:40:58 bazbishop237 Exp $
- Version:
- $Revision: 1.15 $
- Author:
- Richard P??ttler, richard dot poettler at deri dot org
|
Method Summary |
protected boolean |
computeResult(ITerm[] terms)
Compute the result of the comparison. |
GreaterEqualBuiltin
protected GreaterEqualBuiltin(IPredicate predicate,
ITerm... terms)
- Construct a new GreaterEqualBuiltin 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.
GreaterEqualBuiltin
public GreaterEqualBuiltin(ITerm... t)
- Constructs a built-in. Two terms must be passed to the constructor,
otherwise an exception will be thrown.
- Parameters:
t - the terms
- Throws:
NullPointerException - if one of the terms is null
IllegalArgumentException - if the number of terms submitted is
not 2
NullPointerException - if t is null
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.