예제 #1
0
 /** Performs a deep copy on <i>other</i>. */
 public ThriftTaskTrackerStatusList(ThriftTaskTrackerStatusList other) {
   if (other.isSetTrackers()) {
     List<ThriftTaskTrackerStatus> __this__trackers = new ArrayList<ThriftTaskTrackerStatus>();
     for (ThriftTaskTrackerStatus other_element : other.trackers) {
       __this__trackers.add(new ThriftTaskTrackerStatus(other_element));
     }
     this.trackers = __this__trackers;
   }
 }
예제 #2
0
  public boolean equals(ThriftTaskTrackerStatusList that) {
    if (that == null) return false;

    boolean this_present_trackers = true && this.isSetTrackers();
    boolean that_present_trackers = true && that.isSetTrackers();
    if (this_present_trackers || that_present_trackers) {
      if (!(this_present_trackers && that_present_trackers)) return false;
      if (!this.trackers.equals(that.trackers)) return false;
    }

    return true;
  }