Exemple #1
0
  public int compareTo(InvalidPartitionException other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;
    InvalidPartitionException typedOther = (InvalidPartitionException) other;

    lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetMessage()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
Exemple #2
0
  public boolean equals(InvalidPartitionException that) {
    if (that == null) return false;

    boolean this_present_message = true && this.isSetMessage();
    boolean that_present_message = true && that.isSetMessage();
    if (this_present_message || that_present_message) {
      if (!(this_present_message && that_present_message)) return false;
      if (!this.message.equals(that.message)) return false;
    }

    return true;
  }
Exemple #3
0
 /** Performs a deep copy on <i>other</i>. */
 public InvalidPartitionException(InvalidPartitionException other) {
   if (other.isSetMessage()) {
     this.message = other.message;
   }
 }