@Override public void write(org.apache.thrift.protocol.TProtocol prot, StoreAggregatesException struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetMsg()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetMsg()) { oprot.writeString(struct.msg); } }
public boolean equals(StoreAggregatesException that) { if (that == null) return false; boolean this_present_msg = true && this.isSetMsg(); boolean that_present_msg = true && that.isSetMsg(); if (this_present_msg || that_present_msg) { if (!(this_present_msg && that_present_msg)) return false; if (!this.msg.equals(that.msg)) return false; } return true; }
public int compareTo(StoreAggregatesException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; StoreAggregatesException typedOther = (StoreAggregatesException) other; lastComparison = Boolean.valueOf(isSetMsg()).compareTo(typedOther.isSetMsg()); if (lastComparison != 0) { return lastComparison; } if (isSetMsg()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.msg, typedOther.msg); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** Performs a deep copy on <i>other</i>. */ public StoreAggregatesException(StoreAggregatesException other) { if (other.isSetMsg()) { this.msg = other.msg; } }