org.tensorics.expression.IsEqualToExpression 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.IsEqualTo;
import org.tensorics.core.tree.domain.Expression;
public class IsEqualToExpression extends BinaryPredicateExpression {
public IsEqualToExpression(Expression left, Expression right) {
super(new IsEqualTo(), left, right);
}
@Override
public String toString() {
return format("%s is equal to %s", getLeft(), getRight());
}
}