示例#1
0
  @Override
  public int compareTo(InsertEventRequestData other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;

    lastComparison = Boolean.valueOf(isSetFilesAdded()).compareTo(other.isSetFilesAdded());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetFilesAdded()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesAdded, other.filesAdded);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison =
        Boolean.valueOf(isSetFilesAddedChecksum()).compareTo(other.isSetFilesAddedChecksum());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetFilesAddedChecksum()) {
      lastComparison =
          org.apache.thrift.TBaseHelper.compareTo(
              this.filesAddedChecksum, other.filesAddedChecksum);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
示例#2
0
 /** Performs a deep copy on <i>other</i>. */
 public InsertEventRequestData(InsertEventRequestData other) {
   if (other.isSetFilesAdded()) {
     List<String> __this__filesAdded = new ArrayList<String>(other.filesAdded);
     this.filesAdded = __this__filesAdded;
   }
   if (other.isSetFilesAddedChecksum()) {
     List<ByteBuffer> __this__filesAddedChecksum =
         new ArrayList<ByteBuffer>(other.filesAddedChecksum);
     this.filesAddedChecksum = __this__filesAddedChecksum;
   }
 }
示例#3
0
  public boolean equals(InsertEventRequestData that) {
    if (that == null) return false;

    boolean this_present_filesAdded = true && this.isSetFilesAdded();
    boolean that_present_filesAdded = true && that.isSetFilesAdded();
    if (this_present_filesAdded || that_present_filesAdded) {
      if (!(this_present_filesAdded && that_present_filesAdded)) return false;
      if (!this.filesAdded.equals(that.filesAdded)) return false;
    }

    boolean this_present_filesAddedChecksum = true && this.isSetFilesAddedChecksum();
    boolean that_present_filesAddedChecksum = true && that.isSetFilesAddedChecksum();
    if (this_present_filesAddedChecksum || that_present_filesAddedChecksum) {
      if (!(this_present_filesAddedChecksum && that_present_filesAddedChecksum)) return false;
      if (!this.filesAddedChecksum.equals(that.filesAddedChecksum)) return false;
    }

    return true;
  }