Exemple #1
0
  public int compareTo(SessionId other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

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

    lastComparison = Boolean.valueOf(isSetTos()).compareTo(typedOther.isSetTos());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTos()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tos, typedOther.tos);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison =
        Boolean.valueOf(isSetCamiproCookie()).compareTo(typedOther.isSetCamiproCookie());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCamiproCookie()) {
      lastComparison =
          org.apache.thrift.TBaseHelper.compareTo(this.camiproCookie, typedOther.camiproCookie);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
Exemple #2
0
 /** Performs a deep copy on <i>other</i>. */
 public SessionId(SessionId other) {
   __isset_bit_vector.clear();
   __isset_bit_vector.or(other.__isset_bit_vector);
   this.tos = other.tos;
   if (other.isSetCamiproCookie()) {
     this.camiproCookie = other.camiproCookie;
   }
 }
Exemple #3
0
  public boolean equals(SessionId that) {
    if (that == null) return false;

    boolean this_present_tos = true;
    boolean that_present_tos = true;
    if (this_present_tos || that_present_tos) {
      if (!(this_present_tos && that_present_tos)) return false;
      if (this.tos != that.tos) return false;
    }

    boolean this_present_camiproCookie = true && this.isSetCamiproCookie();
    boolean that_present_camiproCookie = true && that.isSetCamiproCookie();
    if (this_present_camiproCookie || that_present_camiproCookie) {
      if (!(this_present_camiproCookie && that_present_camiproCookie)) return false;
      if (!this.camiproCookie.equals(that.camiproCookie)) return false;
    }

    return true;
  }