@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287); if (isSetTable()) hashCode = hashCode * 8191 + table.hashCode(); hashCode = hashCode * 8191 + ((isSetRow()) ? 131071 : 524287); if (isSetRow()) hashCode = hashCode * 8191 + row.hashCode(); hashCode = hashCode * 8191 + ((isSetColumns()) ? 131071 : 524287); if (isSetColumns()) hashCode = hashCode * 8191 + columns.hashCode(); hashCode = hashCode * 8191 + ((isSetValues()) ? 131071 : 524287); if (isSetValues()) hashCode = hashCode * 8191 + values.hashCode(); return 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 java.lang.IllegalArgumentException(); } switch (field) { case TABLE: return isSetTable(); case ROW: return isSetRow(); case COLUMNS: return isSetColumns(); case VALUES: return isSetValues(); } throw new java.lang.IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public TAppend(TAppend other) { if (other.isSetTable()) { this.table = org.apache.thrift.TBaseHelper.copyBinary(other.table); } if (other.isSetRow()) { this.row = org.apache.thrift.TBaseHelper.copyBinary(other.row); } if (other.isSetColumns()) { java.util.List<java.nio.ByteBuffer> __this__columns = new java.util.ArrayList<java.nio.ByteBuffer>(other.columns.size()); for (java.nio.ByteBuffer other_element : other.columns) { __this__columns.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.columns = __this__columns; } if (other.isSetValues()) { java.util.List<java.nio.ByteBuffer> __this__values = new java.util.ArrayList<java.nio.ByteBuffer>(other.values.size()); for (java.nio.ByteBuffer other_element : other.values) { __this__values.add(org.apache.thrift.TBaseHelper.copyBinary(other_element)); } this.values = __this__values; } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_table = true && (isSetTable()); list.add(present_table); if (present_table) list.add(table); boolean present_row = true && (isSetRow()); list.add(present_row); if (present_row) list.add(row); boolean present_columns = true && (isSetColumns()); list.add(present_columns); if (present_columns) list.add(columns); boolean present_values = true && (isSetValues()); list.add(present_values); if (present_values) list.add(values); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_table = true && (isSetTable()); list.add(present_table); if (present_table) list.add(table); boolean present_row = true && (isSetRow()); list.add(present_row); if (present_row) list.add(row); boolean present_columns = true && (isSetColumns()); list.add(present_columns); if (present_columns) list.add(columns); boolean present_values = true && (isSetValues()); list.add(present_values); if (present_values) list.add(values); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public TAppend(TAppend other) { if (other.isSetTable()) { this.table = other.table; } if (other.isSetRow()) { this.row = other.row; } if (other.isSetColumns()) { List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>(other.columns.size()); for (ByteBuffer other_element : other.columns) { __this__columns.add(other_element); } this.columns = __this__columns; } if (other.isSetValues()) { List<ByteBuffer> __this__values = new ArrayList<ByteBuffer>(other.values.size()); for (ByteBuffer other_element : other.values) { __this__values.add(other_element); } this.values = __this__values; } }
/** * Performs a deep copy on <i>other</i>. */ public TAppend(TAppend other) { if (other.isSetTable()) { this.table = other.table; } if (other.isSetRow()) { this.row = other.row; } if (other.isSetColumns()) { List<ByteBuffer> __this__columns = new ArrayList<ByteBuffer>(other.columns.size()); for (ByteBuffer other_element : other.columns) { __this__columns.add(other_element); } this.columns = __this__columns; } if (other.isSetValues()) { List<ByteBuffer> __this__values = new ArrayList<ByteBuffer>(other.values.size()); for (ByteBuffer other_element : other.values) { __this__values.add(other_element); } this.values = __this__values; } }
/** 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 TABLE: return isSetTable(); case ROW: return isSetRow(); case COLUMNS: return isSetColumns(); case VALUES: return isSetValues(); } throw new IllegalStateException(); }
/** 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 TABLE: return isSetTable(); case ROW: return isSetRow(); case COLUMNS: return isSetColumns(); case VALUES: return isSetValues(); } throw new IllegalStateException(); }
/** 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 TABLE: return isSetTable(); case ROW: return isSetRow(); case COLUMNS: return isSetColumns(); case VALUES: return isSetValues(); } throw new IllegalStateException(); }
/** 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 TABLE: return isSetTable(); case ROW: return isSetRow(); case COLUMNS: return isSetColumns(); case VALUES: return isSetValues(); } throw new IllegalStateException(); }