Ejemplo n.º 1
0
  @Override
  public int compareTo(TI16Column other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;

    lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetValues()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetNulls()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
Ejemplo n.º 2
0
 /** Performs a deep copy on <i>other</i>. */
 public TI16Column(TI16Column other) {
   if (other.isSetValues()) {
     List<Short> __this__values = new ArrayList<Short>(other.values);
     this.values = __this__values;
   }
   if (other.isSetNulls()) {
     this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls);
     ;
   }
 }
Ejemplo n.º 3
0
  public boolean equals(TI16Column 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;
    }

    boolean this_present_nulls = true && this.isSetNulls();
    boolean that_present_nulls = true && that.isSetNulls();
    if (this_present_nulls || that_present_nulls) {
      if (!(this_present_nulls && that_present_nulls)) return false;
      if (!this.nulls.equals(that.nulls)) return false;
    }

    return true;
  }