/** * Performs a deep copy on <i>other</i>. */ public PageEncodingStats(PageEncodingStats other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetPage_type()) { this.page_type = other.page_type; } if (other.isSetEncoding()) { this.encoding = other.encoding; } this.count = other.count; }
/** * Performs a deep copy on <i>other</i>. */ public PageEncodingStats(PageEncodingStats other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetPage_type()) { this.page_type = other.page_type; } if (other.isSetEncoding()) { this.encoding = other.encoding; } this.count = other.count; }
/** 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 PAGE_TYPE: return isSetPage_type(); case ENCODING: return isSetEncoding(); case COUNT: return isSetCount(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_page_type = true && (isSetPage_type()); list.add(present_page_type); if (present_page_type) list.add(page_type.getValue()); boolean present_encoding = true && (isSetEncoding()); list.add(present_encoding); if (present_encoding) list.add(encoding.getValue()); boolean present_count = true; list.add(present_count); if (present_count) list.add(count); 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 java.lang.IllegalArgumentException(); } switch (field) { case PAGE_TYPE: return isSetPage_type(); case ENCODING: return isSetEncoding(); case COUNT: return isSetCount(); } throw new java.lang.IllegalStateException(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetPage_type()) ? 131071 : 524287); if (isSetPage_type()) hashCode = hashCode * 8191 + page_type.getValue(); hashCode = hashCode * 8191 + ((isSetEncoding()) ? 131071 : 524287); if (isSetEncoding()) hashCode = hashCode * 8191 + encoding.getValue(); hashCode = hashCode * 8191 + count; return hashCode; }
public boolean equals(PageEncodingStats that) { if (that == null) return false; boolean this_present_page_type = true && this.isSetPage_type(); boolean that_present_page_type = true && that.isSetPage_type(); if (this_present_page_type || that_present_page_type) { if (!(this_present_page_type && that_present_page_type)) return false; if (!this.page_type.equals(that.page_type)) 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_count = true; boolean that_present_count = true; if (this_present_count || that_present_count) { if (!(this_present_count && that_present_count)) return false; if (this.count != that.count) return false; } return true; }
lastComparison = Boolean.valueOf(isSetPage_type()).compareTo(other.isSetPage_type()); if (lastComparison != 0) { return lastComparison; if (isSetPage_type()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page_type, other.page_type); if (lastComparison != 0) {
lastComparison = java.lang.Boolean.valueOf(isSetPage_type()).compareTo(other.isSetPage_type()); if (lastComparison != 0) { return lastComparison; if (isSetPage_type()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.page_type, other.page_type); if (lastComparison != 0) {
return true; boolean this_present_page_type = true && this.isSetPage_type(); boolean that_present_page_type = true && that.isSetPage_type(); if (this_present_page_type || that_present_page_type) { if (!(this_present_page_type && that_present_page_type))