@Override
    public final boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (o instanceof ParamExpression<?>) {
            ParamExpression<?> other = (ParamExpression<?>) o;
            return other.getType().equals(getType())
                && other.getName().equals(name)
                && other.isAnon() == anon;
        } else {
            return false;
        }
    }
{@code ParamExpressionImpl} defines a parameter in a query with an optional name

@author tiwe

@param <T> expression type
querydsl-core/src/main/java/com/querydsl/core/types/ParamExpressionImpl.java