public int compareTo()

in src/main/java/org/apache/flink/benchmark/thrift/MyPojo.java [685:784]


    public int compareTo(MyPojo other) {
        if (!getClass().equals(other.getClass())) {
            return getClass().getName().compareTo(other.getClass().getName());
        }

        int lastComparison = 0;

        lastComparison = java.lang.Boolean.valueOf(isSetId()).compareTo(other.isSetId());
        if (lastComparison != 0) {
            return lastComparison;
        }
        if (isSetId()) {
            lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id);
            if (lastComparison != 0) {
                return lastComparison;
            }
        }
        lastComparison = java.lang.Boolean.valueOf(isSetName()).compareTo(other.isSetName());
        if (lastComparison != 0) {
            return lastComparison;
        }
        if (isSetName()) {
            lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name);
            if (lastComparison != 0) {
                return lastComparison;
            }
        }
        lastComparison =
                java.lang.Boolean.valueOf(isSetOperationName())
                        .compareTo(other.isSetOperationName());
        if (lastComparison != 0) {
            return lastComparison;
        }
        if (isSetOperationName()) {
            lastComparison =
                    org.apache.thrift.TBaseHelper.compareTo(
                            this.operationName, other.operationName);
            if (lastComparison != 0) {
                return lastComparison;
            }
        }
        lastComparison =
                java.lang.Boolean.valueOf(isSetOperations()).compareTo(other.isSetOperations());
        if (lastComparison != 0) {
            return lastComparison;
        }
        if (isSetOperations()) {
            lastComparison =
                    org.apache.thrift.TBaseHelper.compareTo(this.operations, other.operations);
            if (lastComparison != 0) {
                return lastComparison;
            }
        }
        lastComparison =
                java.lang.Boolean.valueOf(isSetOtherId1()).compareTo(other.isSetOtherId1());
        if (lastComparison != 0) {
            return lastComparison;
        }
        if (isSetOtherId1()) {
            lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otherId1, other.otherId1);
            if (lastComparison != 0) {
                return lastComparison;
            }
        }
        lastComparison =
                java.lang.Boolean.valueOf(isSetOtherId2()).compareTo(other.isSetOtherId2());
        if (lastComparison != 0) {
            return lastComparison;
        }
        if (isSetOtherId2()) {
            lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otherId2, other.otherId2);
            if (lastComparison != 0) {
                return lastComparison;
            }
        }
        lastComparison =
                java.lang.Boolean.valueOf(isSetOtherId3()).compareTo(other.isSetOtherId3());
        if (lastComparison != 0) {
            return lastComparison;
        }
        if (isSetOtherId3()) {
            lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otherId3, other.otherId3);
            if (lastComparison != 0) {
                return lastComparison;
            }
        }
        lastComparison =
                java.lang.Boolean.valueOf(isSetSomeObject()).compareTo(other.isSetSomeObject());
        if (lastComparison != 0) {
            return lastComparison;
        }
        if (isSetSomeObject()) {
            lastComparison =
                    org.apache.thrift.TBaseHelper.compareTo(this.someObject, other.someObject);
            if (lastComparison != 0) {
                return lastComparison;
            }
        }
        return 0;
    }