@Override public NodeValue eval(NodeValue x, NodeValue y) { // Note: notSameValueAs means "known to be different" // sameValueAs means "know to be the same value" // so they are not opposites boolean b = NodeValue.notSameAs(x, y) ; return NodeValue.booleanReturn(b) ; }
@Override public NodeValue eval(NodeValue x, NodeValue y) { // Note: notSameValueAs means "known to be different" // sameValueAs means "know to be the same value" // so they are not opposites boolean b = NodeValue.notSameAs(x, y) ; return NodeValue.booleanReturn(b) ; }
/** Return true if the two Nodes are known to be different, * return false if the two Nodes are known to be the same, * else throw ExprEvalException */ public static boolean notSameAs(Node n1, Node n2) { return notSameAs(NodeValue.makeNode(n1), NodeValue.makeNode(n2)) ; }
/** Return true if the two Nodes are known to be different, * return false if the two Nodes are known to be the same, * else throw ExprEvalException */ public static boolean notSameAs(Node n1, Node n2) { return notSameAs(NodeValue.makeNode(n1), NodeValue.makeNode(n2)) ; }