Ejemplo n.º 1
0
  public boolean equals(Transaction that) {
    if (that == null) return false;

    boolean this_present_iDate = true && this.isSetIDate();
    boolean that_present_iDate = true && that.isSetIDate();
    if (this_present_iDate || that_present_iDate) {
      if (!(this_present_iDate && that_present_iDate)) return false;
      if (!this.iDate.equals(that.iDate)) return false;
    }

    boolean this_present_iOperation = true && this.isSetIOperation();
    boolean that_present_iOperation = true && that.isSetIOperation();
    if (this_present_iOperation || that_present_iOperation) {
      if (!(this_present_iOperation && that_present_iOperation)) return false;
      if (!this.iOperation.equals(that.iOperation)) return false;
    }

    boolean this_present_iPlace = true && this.isSetIPlace();
    boolean that_present_iPlace = true && that.isSetIPlace();
    if (this_present_iPlace || that_present_iPlace) {
      if (!(this_present_iPlace && that_present_iPlace)) return false;
      if (!this.iPlace.equals(that.iPlace)) return false;
    }

    boolean this_present_iAmount = true;
    boolean that_present_iAmount = true;
    if (this_present_iAmount || that_present_iAmount) {
      if (!(this_present_iAmount && that_present_iAmount)) return false;
      if (this.iAmount != that.iAmount) return false;
    }

    return true;
  }
Ejemplo n.º 2
0
  public int compareTo(Transaction other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

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

    lastComparison = Boolean.valueOf(isSetIDate()).compareTo(typedOther.isSetIDate());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIDate()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.iDate, typedOther.iDate);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetIOperation()).compareTo(typedOther.isSetIOperation());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIOperation()) {
      lastComparison =
          org.apache.thrift.TBaseHelper.compareTo(this.iOperation, typedOther.iOperation);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetIPlace()).compareTo(typedOther.isSetIPlace());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIPlace()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.iPlace, typedOther.iPlace);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetIAmount()).compareTo(typedOther.isSetIAmount());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetIAmount()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.iAmount, typedOther.iAmount);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
Ejemplo n.º 3
0
 /** Performs a deep copy on <i>other</i>. */
 public Transaction(Transaction other) {
   __isset_bit_vector.clear();
   __isset_bit_vector.or(other.__isset_bit_vector);
   if (other.isSetIDate()) {
     this.iDate = other.iDate;
   }
   if (other.isSetIOperation()) {
     this.iOperation = other.iOperation;
   }
   if (other.isSetIPlace()) {
     this.iPlace = other.iPlace;
   }
   this.iAmount = other.iAmount;
 }