コード例 #1
0
  public boolean equals(TUserDefinedTypeEntry that) {
    if (that == null) return false;

    boolean this_present_typeClassName = true && this.isSetTypeClassName();
    boolean that_present_typeClassName = true && that.isSetTypeClassName();
    if (this_present_typeClassName || that_present_typeClassName) {
      if (!(this_present_typeClassName && that_present_typeClassName)) return false;
      if (!this.typeClassName.equals(that.typeClassName)) return false;
    }

    return true;
  }
コード例 #2
0
  @Override
  public int compareTo(TUserDefinedTypeEntry other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;

    lastComparison = Boolean.valueOf(isSetTypeClassName()).compareTo(other.isSetTypeClassName());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTypeClassName()) {
      lastComparison =
          org.apache.thrift.TBaseHelper.compareTo(this.typeClassName, other.typeClassName);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
コード例 #3
0
 /** Performs a deep copy on <i>other</i>. */
 public TUserDefinedTypeEntry(TUserDefinedTypeEntry other) {
   if (other.isSetTypeClassName()) {
     this.typeClassName = other.typeClassName;
   }
 }