Class Equal

java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.compare.Equal
All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory

public final class Equal extends AbstractSingleResultPredicate
X=Y - an equality test.

If X can be matched with Y the goal succeeds else the goal fails. A X=Y goal will consider an uninstantiated variable to be equal to anything. A X=Y goal will always succeed if either argument is uninstantiated.