/** * Performs a deep copy on <i>other</i>. */ public BlockletInfo2(BlockletInfo2 other) { __isset_bitfield = other.__isset_bitfield; this.num_rows = other.num_rows; if (other.isSetColumn_data_chunks_offsets()) { List<Long> __this__column_data_chunks_offsets = new ArrayList<Long>(other.column_data_chunks_offsets); this.column_data_chunks_offsets = __this__column_data_chunks_offsets; } if (other.isSetColumn_data_chunks_length()) { List<Short> __this__column_data_chunks_length = new ArrayList<Short>(other.column_data_chunks_length); this.column_data_chunks_length = __this__column_data_chunks_length; } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_num_rows = true; list.add(present_num_rows); if (present_num_rows) list.add(num_rows); boolean present_column_data_chunks_offsets = true && (isSetColumn_data_chunks_offsets()); list.add(present_column_data_chunks_offsets); if (present_column_data_chunks_offsets) list.add(column_data_chunks_offsets); boolean present_column_data_chunks_length = true && (isSetColumn_data_chunks_length()); list.add(present_column_data_chunks_length); if (present_column_data_chunks_length) list.add(column_data_chunks_length); 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 NUM_ROWS: return isSetNum_rows(); case COLUMN_DATA_CHUNKS_OFFSETS: return isSetColumn_data_chunks_offsets(); case COLUMN_DATA_CHUNKS_LENGTH: return isSetColumn_data_chunks_length(); } throw new IllegalStateException(); }
public boolean equals(BlockletInfo2 that) { if (that == null) return false; boolean this_present_num_rows = true; boolean that_present_num_rows = true; if (this_present_num_rows || that_present_num_rows) { if (!(this_present_num_rows && that_present_num_rows)) return false; if (this.num_rows != that.num_rows) return false; } boolean this_present_column_data_chunks_offsets = true && this.isSetColumn_data_chunks_offsets(); boolean that_present_column_data_chunks_offsets = true && that.isSetColumn_data_chunks_offsets(); if (this_present_column_data_chunks_offsets || that_present_column_data_chunks_offsets) { if (!(this_present_column_data_chunks_offsets && that_present_column_data_chunks_offsets)) return false; if (!this.column_data_chunks_offsets.equals(that.column_data_chunks_offsets)) return false; } boolean this_present_column_data_chunks_length = true && this.isSetColumn_data_chunks_length(); boolean that_present_column_data_chunks_length = true && that.isSetColumn_data_chunks_length(); if (this_present_column_data_chunks_length || that_present_column_data_chunks_length) { if (!(this_present_column_data_chunks_length && that_present_column_data_chunks_length)) return false; if (!this.column_data_chunks_length.equals(that.column_data_chunks_length)) return false; } return true; }
lastComparison = Boolean.valueOf(isSetColumn_data_chunks_length()).compareTo(other.isSetColumn_data_chunks_length()); if (lastComparison != 0) { return lastComparison; if (isSetColumn_data_chunks_length()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_data_chunks_length, other.column_data_chunks_length); if (lastComparison != 0) {