org.deri.iris.builtins.datatype
Class IsNegativeIntegerBuiltin
java.lang.Object
org.deri.iris.builtins.AbstractBuiltin
org.deri.iris.builtins.BooleanBuiltin
org.deri.iris.builtins.datatype.IsNegativeIntegerBuiltin
- All Implemented Interfaces:
- Comparable<IAtom>, IAtom, IBuiltinAtom
public class IsNegativeIntegerBuiltin
- extends BooleanBuiltin
Checks if a term is of type 'NegativeInteger'.
- Author:
- Adrian Marte
PREDICATE
public static final IPredicate PREDICATE
- The predicate defining this built-in.
IsNegativeIntegerBuiltin
public IsNegativeIntegerBuiltin(ITerm... terms)
- Constructor.
- Parameters:
terms - The list of terms. Must always be of length 1 in this case.
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.
isNegativeInteger
public static boolean isNegativeInteger(ITerm term)