public static IsEqual isEqual(NumberExpression left, Object constant) {

        if (!(constant instanceof Number))
            throw new IllegalArgumentException("constant is not a Number");

        return new IsEqual(left, constant((Number)constant));
    }
public static IsEqual isEqual ( NumberExpression left , Object constant ) { if ( ! ( constant instanceof Number ) ) throw new IllegalArgumentException ( "constant is not a Number" ) ; return new IsEqual ( left , constant ( ( Number ) constant ) ) ; }
Creates an IsEqual expression from the given expression and constant.

@param left  The left expression.
@param constant The constant to compare to (must be a Number).
@throws IllegalArgumentException If constant is not a Number.
@return A new IsEqual binary expression.