All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tensorics.expression.IsEqualToExpression Maven / Gradle / Ivy

Go to download

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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy