/** * Performs a deep copy on <i>other</i>. */ public DictionaryPageHeader(DictionaryPageHeader other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); this.num_values = other.num_values; if (other.isSetEncoding()) { this.encoding = other.encoding; } this.is_sorted = other.is_sorted; }
/** * Performs a deep copy on <i>other</i>. */ public DictionaryPageHeader(DictionaryPageHeader other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); this.num_values = other.num_values; if (other.isSetEncoding()) { this.encoding = other.encoding; } this.is_sorted = other.is_sorted; }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_num_values = true; builder.append(present_num_values); if (present_num_values) builder.append(num_values); boolean present_encoding = true && (isSetEncoding()); builder.append(present_encoding); if (present_encoding) builder.append(encoding.getValue()); boolean present_is_sorted = true && (isSetIs_sorted()); builder.append(present_is_sorted); if (present_is_sorted) builder.append(is_sorted); return builder.toHashCode(); }
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NUM_VALUES: return isSetNum_values(); case ENCODING: return isSetEncoding(); case IS_SORTED: return isSetIs_sorted(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NUM_VALUES: return isSetNum_values(); case ENCODING: return isSetEncoding(); case IS_SORTED: return isSetIs_sorted(); } throw new IllegalStateException(); }
public boolean equals(DictionaryPageHeader that) { if (that == null) return false; boolean this_present_num_values = true; boolean that_present_num_values = true; if (this_present_num_values || that_present_num_values) { if (!(this_present_num_values && that_present_num_values)) return false; if (this.num_values != that.num_values) return false; } boolean this_present_encoding = true && this.isSetEncoding(); boolean that_present_encoding = true && that.isSetEncoding(); if (this_present_encoding || that_present_encoding) { if (!(this_present_encoding && that_present_encoding)) return false; if (!this.encoding.equals(that.encoding)) return false; } boolean this_present_is_sorted = true && this.isSetIs_sorted(); boolean that_present_is_sorted = true && that.isSetIs_sorted(); if (this_present_is_sorted || that_present_is_sorted) { if (!(this_present_is_sorted && that_present_is_sorted)) return false; if (this.is_sorted != that.is_sorted) return false; } return true; }
public boolean equals(DictionaryPageHeader that) { if (that == null) return false; boolean this_present_num_values = true; boolean that_present_num_values = true; if (this_present_num_values || that_present_num_values) { if (!(this_present_num_values && that_present_num_values)) return false; if (this.num_values != that.num_values) return false; } boolean this_present_encoding = true && this.isSetEncoding(); boolean that_present_encoding = true && that.isSetEncoding(); if (this_present_encoding || that_present_encoding) { if (!(this_present_encoding && that_present_encoding)) return false; if (!this.encoding.equals(that.encoding)) return false; } boolean this_present_is_sorted = true && this.isSetIs_sorted(); boolean that_present_is_sorted = true && that.isSetIs_sorted(); if (this_present_is_sorted || that_present_is_sorted) { if (!(this_present_is_sorted && that_present_is_sorted)) return false; if (this.is_sorted != that.is_sorted) return false; } return true; }
lastComparison = Boolean.valueOf(isSetEncoding()).compareTo(typedOther.isSetEncoding()); if (lastComparison != 0) { return lastComparison; if (isSetEncoding()) { lastComparison = TBaseHelper.compareTo(this.encoding, typedOther.encoding); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetEncoding()).compareTo(typedOther.isSetEncoding()); if (lastComparison != 0) { return lastComparison; if (isSetEncoding()) { lastComparison = TBaseHelper.compareTo(this.encoding, typedOther.encoding); if (lastComparison != 0) {
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_num_values = true; builder.append(present_num_values); if (present_num_values) builder.append(num_values); boolean present_encoding = true && (isSetEncoding()); builder.append(present_encoding); if (present_encoding) builder.append(encoding.getValue()); boolean present_is_sorted = true && (isSetIs_sorted()); builder.append(present_is_sorted); if (present_is_sorted) builder.append(is_sorted); return builder.toHashCode(); }