org.deri.iris.builtins
Class NotEqualBuiltin
java.lang.Object
org.deri.iris.builtins.AbstractBuiltin
org.deri.iris.builtins.BooleanBuiltin
org.deri.iris.builtins.NotEqualBuiltin
- All Implemented Interfaces:
- Comparable<IAtom>, IAtom, IBuiltinAtom
- Direct Known Subclasses:
- DateNotEqualBuiltin, DateTimeNotEqualBuiltin, DurationNotEqualBuiltin, NumericNotEqualBuiltin, TimeNotEqualBuiltin, XMLLiteralNotEqualBuiltin
public class NotEqualBuiltin
- extends BooleanBuiltin
Builtin to compare two terms for inequality.
|
Method Summary |
protected boolean |
computeResult(ITerm[] terms)
Compute the result of the comparison. |
NotEqualBuiltin
protected NotEqualBuiltin(IPredicate predicate,
ITerm... terms)
- Construct a new NotEqualBuiltin 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.
NotEqualBuiltin
public NotEqualBuiltin(ITerm... terms)
- Constructs a built-in. Two terms must be passed to the constructor,
otherwise an exception will be thrown.
- Parameters:
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.
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.