@Override public int compareTo(shutdown_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(isSetSec()).compareTo(other.isSetSec()); if (lastComparison != 0) { return lastComparison; } if (isSetSec()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sec, other.sec); if (lastComparison != 0) { return lastComparison; } } 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 SEC: return isSetSec(); case TNASE: return isSetTnase(); } throw new java.lang.IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, shutdown_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.isSetSec()) { optionals.set(0); } if (struct.isSetTnase()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSec()) { struct.sec.write(oprot); } if (struct.isSetTnase()) { struct.tnase.write(oprot); } }
@Override public int compareTo(shutdown_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSec()).compareTo(other.isSetSec()); if (lastComparison != 0) { return lastComparison; } if (isSetSec()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sec, other.sec); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(shutdown_result that) { if (that == null) return false; boolean this_present_sec = true && this.isSetSec(); boolean that_present_sec = true && that.isSetSec(); if (this_present_sec || that_present_sec) { if (!(this_present_sec && that_present_sec)) return false; if (!this.sec.equals(that.sec)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, shutdown_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSec()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetSec()) { struct.sec.write(oprot); } }
/** * Performs a deep copy on <i>other</i>. */ public shutdown_result(shutdown_result other) { if (other.isSetSec()) { this.sec = new org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException(other.sec); } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_sec = true && (isSetSec()); list.add(present_sec); if (present_sec) list.add(sec); return list.hashCode(); }
/** 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 IllegalArgumentException(); } switch (field) { case SEC: return isSetSec(); } throw new IllegalStateException(); }
public boolean equals(shutdown_result that) { if (that == null) return false; if (this == that) return true; boolean this_present_sec = true && this.isSetSec(); boolean that_present_sec = true && that.isSetSec(); if (this_present_sec || that_present_sec) { if (!(this_present_sec && that_present_sec)) return false; if (!this.sec.equals(that.sec)) return false; } 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 + ((isSetSec()) ? 131071 : 524287); if (isSetSec()) hashCode = hashCode * 8191 + sec.hashCode(); hashCode = hashCode * 8191 + ((isSetTnase()) ? 131071 : 524287); if (isSetTnase()) hashCode = hashCode * 8191 + tnase.hashCode(); return hashCode; }
/** * Performs a deep copy on <i>other</i>. */ public shutdown_result(shutdown_result other) { if (other.isSetSec()) { this.sec = new org.apache.accumulo.core.clientImpl.thrift.ThriftSecurityException(other.sec); } if (other.isSetTnase()) { this.tnase = new org.apache.accumulo.core.clientImpl.thrift.ThriftNotActiveServiceException(other.tnase); } }