@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_cliException = true && (isSetCliException()); list.add(present_cliException); if (present_cliException) list.add(cliException); 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 CLI_EXCEPTION: return isSetCliException(); } throw new IllegalStateException(); }
@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(isSetCliException()).compareTo(other.isSetCliException()); if (lastComparison != 0) { return lastComparison; } if (isSetCliException()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cliException, other.cliException); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(shutdown_result that) { if (that == null) return false; boolean this_present_cliException = true && this.isSetCliException(); boolean that_present_cliException = true && that.isSetCliException(); if (this_present_cliException || that_present_cliException) { if (!(this_present_cliException && that_present_cliException)) return false; if (!this.cliException.equals(that.cliException)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public shutdown_result(shutdown_result other) { if (other.isSetCliException()) { this.cliException = new CliThriftException(other.cliException); } }
@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.isSetCliException()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetCliException()) { struct.cliException.write(oprot); } }