@Override public int compareTo(waitForBalance_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(isSetTnase()).compareTo(other.isSetTnase()); if (lastComparison != 0) { return lastComparison; } if (isSetTnase()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnase, other.tnase); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new java.lang.IllegalArgumentException(); } switch (field) { case TNASE: return isSetTnase(); } throw new java.lang.IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, waitForBalance_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTnase()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetTnase()) { struct.tnase.write(oprot); } }
public boolean equals(waitForBalance_result that) { if (that == null) return false; if (this == that) return true; boolean this_present_tnase = true && this.isSetTnase(); boolean that_present_tnase = true && that.isSetTnase(); if (this_present_tnase || that_present_tnase) { if (!(this_present_tnase && that_present_tnase)) return false; if (!this.tnase.equals(that.tnase)) return false; } return true; }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetTnase()) ? 131071 : 524287); if (isSetTnase()) hashCode = hashCode * 8191 + tnase.hashCode(); return hashCode; }
/** * Performs a deep copy on <i>other</i>. */ public waitForBalance_result(waitForBalance_result other) { if (other.isSetTnase()) { this.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(other.tnase); } }