org.tensorics.expression.IsNotEqualExpression Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tensorics-expression Show documentation
Show all versions of tensorics-expression Show documentation
Tensoric expression is able to solve an expression tree. Much like a tree coming from a traditional equation, where both operations and operands can be objects and can implement custom behavior
The newest version!
/**
* Copyright (c) 2016 European Organisation for Nuclear Research (CERN), All Rights Reserved.
*/
package org.tensorics.expression;
import static java.lang.String.format;
import org.tensorics.core.expressions.BinaryPredicateExpression;
import org.tensorics.core.math.predicates.IsNotEqualTo;
import org.tensorics.core.tree.domain.Expression;
public class IsNotEqualExpression extends BinaryPredicateExpression {
public IsNotEqualExpression(Expression left, Expression right) {
super(new IsNotEqualTo<>(), left, right);
}
@Override
public String toString() {
return format("%s is not equal to %s", getLeft(), getRight());
}
}