/** Performs a deep copy on <i>other</i>. */
 public ObjectIdListWrapper(ObjectIdListWrapper other) {
   if (other.isSetValues()) {
     List<ByteBuffer> __this__values = new ArrayList<ByteBuffer>();
     for (ByteBuffer other_element : other.values) {
       __this__values.add(other_element);
     }
     this.values = __this__values;
   }
 }
  public boolean equals(ObjectIdListWrapper that) {
    if (that == null) return false;

    boolean this_present_values = true && this.isSetValues();
    boolean that_present_values = true && that.isSetValues();
    if (this_present_values || that_present_values) {
      if (!(this_present_values && that_present_values)) return false;
      if (!this.values.equals(that.values)) return false;
    }

    return true;
  }
  public int compareTo(ObjectIdListWrapper other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

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

    lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetValues()) {
      lastComparison = TBaseHelper.compareTo(this.values, typedOther.values);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }