public boolean equals(AllocateTableWriteIdsResponse that) { if (that == null) return false; boolean this_present_txnToWriteIds = true && this.isSetTxnToWriteIds(); boolean that_present_txnToWriteIds = true && that.isSetTxnToWriteIds(); if (this_present_txnToWriteIds || that_present_txnToWriteIds) { if (!(this_present_txnToWriteIds && that_present_txnToWriteIds)) return false; if (!this.txnToWriteIds.equals(that.txnToWriteIds)) return false; } return true; }
/** 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 TXN_TO_WRITE_IDS: return isSetTxnToWriteIds(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_txnToWriteIds = true && (isSetTxnToWriteIds()); list.add(present_txnToWriteIds); if (present_txnToWriteIds) list.add(txnToWriteIds); return list.hashCode(); }
@Override public int compareTo(AllocateTableWriteIdsResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetTxnToWriteIds()).compareTo(other.isSetTxnToWriteIds()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnToWriteIds()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnToWriteIds, other.txnToWriteIds); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** * Performs a deep copy on <i>other</i>. */ public AllocateTableWriteIdsResponse(AllocateTableWriteIdsResponse other) { if (other.isSetTxnToWriteIds()) { List<TxnToWriteId> __this__txnToWriteIds = new ArrayList<TxnToWriteId>(other.txnToWriteIds.size()); for (TxnToWriteId other_element : other.txnToWriteIds) { __this__txnToWriteIds.add(new TxnToWriteId(other_element)); } this.txnToWriteIds = __this__txnToWriteIds; } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxnToWriteIds()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnToWriteIds' is unset! Struct:" + toString()); } // check for sub-struct validity }