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