Esempio n. 1
0
 /** Performs a deep copy on <i>other</i>. */
 public StoreFamilyRevisionList(StoreFamilyRevisionList other) {
   if (other.isSetRevisionList()) {
     List<StoreFamilyRevision> __this__revisionList = new ArrayList<StoreFamilyRevision>();
     for (StoreFamilyRevision other_element : other.revisionList) {
       __this__revisionList.add(new StoreFamilyRevision(other_element));
     }
     this.revisionList = __this__revisionList;
   }
 }
Esempio n. 2
0
  public int compareTo(StoreFamilyRevisionList other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

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

    lastComparison = Boolean.valueOf(isSetRevisionList()).compareTo(typedOther.isSetRevisionList());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetRevisionList()) {
      lastComparison =
          org.apache.thrift.TBaseHelper.compareTo(this.revisionList, typedOther.revisionList);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
Esempio n. 3
0
  public boolean equals(StoreFamilyRevisionList that) {
    if (that == null) return false;

    boolean this_present_revisionList = true && this.isSetRevisionList();
    boolean that_present_revisionList = true && that.isSetRevisionList();
    if (this_present_revisionList || that_present_revisionList) {
      if (!(this_present_revisionList && that_present_revisionList)) return false;
      if (!this.revisionList.equals(that.revisionList)) return false;
    }

    return true;
  }