public boolean equals()

in src/main/java/org/apache/flink/benchmark/thrift/MyOperation.java [208:227]


    public boolean equals(MyOperation that) {
        if (that == null) return false;
        if (this == that) return true;

        boolean this_present_id = true;
        boolean that_present_id = true;
        if (this_present_id || that_present_id) {
            if (!(this_present_id && that_present_id)) return false;
            if (this.id != that.id) return false;
        }

        boolean this_present_name = true && this.isSetName();
        boolean that_present_name = true && that.isSetName();
        if (this_present_name || that_present_name) {
            if (!(this_present_name && that_present_name)) return false;
            if (!this.name.equals(that.name)) return false;
        }

        return true;
    }