public final class Between extends AbstractPredicateFactory
between(X,Y,Z)
- checks if a number is within a specified range.
between(X,Y,Z)
succeeds if the integer numeric value represented by Z
is greater than or
equal to the integer numeric value represented by X
and is less than or equal to the integer numeric
value represented by Y
.
If Z
is an uninstantiated variable then Z
will be successively unified with all integer
values in the range from X
to Y
.
Constructor and Description |
---|
Between() |
Modifier and Type | Method and Description |
---|---|
protected Predicate |
getPredicate(Term low,
Term high,
Term middle) |
getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicate, getPredicate, getPredicate, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAlwaysCutOnBacktrack
protected Predicate getPredicate(Term low, Term high, Term middle)
getPredicate
in class AbstractPredicateFactory
Copyright © 2024. All rights reserved.