class ExpressionCacheKey implements Serializable {

    private static final long serialVersionUID = 872451230923L;

    private final String type;
    private final String expression0;
    private final String expression1;
    private final int h;


    public ExpressionCacheKey(final String type, final String expression0) {
        this(type, expression0, null);
    }

    public ExpressionCacheKey(final String type, final String expression0, final String expression1) {

        super();

        Validate.notNull(type, "Type cannot be null");
        Validate.notNull(expression0, "Expression cannot be null");

        this.type = type;
        this.expression0 = expression0;
        this.expression1 = expression1;

        // This being a cache key, its equals and hashCode methods will potentially execute many
        // times, so this could help performance
        this.h = computeHashCode();

    }

    public String getType() {
        return this.type;
    }

    public String getExpression0() {
        return this.expression0;
    }

    public String getExpression1() {
        return this.expression1;
    }


    @Override
    public boolean equals(final Object o) {<FILL_FUNCTION_BODY>}


    @Override
    public int hashCode() {
        return this.h;
    }


    private int computeHashCode() {
        int result = this.type.hashCode();
        result = 31 * result + this.expression0.hashCode();
        result = 31 * result + (this.expression1 != null ? this.expression1.hashCode() : 0);
        return result;
    }


    @Override
    public String toString() {
        final StringBuilder strBuilder = new StringBuilder();
        strBuilder.append(this.type);
        strBuilder.append('|');
        strBuilder.append(this.expression0);
        if (this.expression1 != null) {
            strBuilder.append('|');
            strBuilder.append(this.expression1);
        }
        return strBuilder.toString();
    }

}


        if (this == o) {
            return true;
        }

        if (!(o instanceof ExpressionCacheKey)) {
            return false;
        }

        final ExpressionCacheKey that = (ExpressionCacheKey) o;

        if (this.h != that.h) { // fail fast
            return false;
        }

        if (!this.type.equals(that.type)) {
            return false;
        }
        if (!this.expression0.equals(that.expression0)) {
            return false;
        }
        return this.expression1 != null ? this.expression1.equals(that.expression1) : that.expression1 == null;

    
<no_super_class>