@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_settable = true && (is_set_settable()); list.add(present_settable); if (present_settable) list.add(settable); boolean present_version = true; list.add(present_version); if (present_version) list.add(version); return list.hashCode(); }
public boolean equals(ReadableBlobMeta that) { if (that == null) return false; boolean this_present_settable = true && this.is_set_settable(); boolean that_present_settable = true && that.is_set_settable(); if (this_present_settable || that_present_settable) { if (!(this_present_settable && that_present_settable)) return false; if (!this.settable.equals(that.settable)) return false; } boolean this_present_version = true; boolean that_present_version = true; if (this_present_version || that_present_version) { if (!(this_present_version && that_present_version)) return false; if (this.version != that.version) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public ReadableBlobMeta(ReadableBlobMeta other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_settable()) { this.settable = new SettableBlobMeta(other.settable); } this.version = other.version; }
/** 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 SETTABLE: return is_set_settable(); case VERSION: return is_set_version(); } throw new IllegalStateException(); }
@Override public int compareTo(ReadableBlobMeta other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_settable()).compareTo(other.is_set_settable()); if (lastComparison != 0) { return lastComparison; } if (is_set_settable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.settable, other.settable); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_version()).compareTo(other.is_set_version()); if (lastComparison != 0) { return lastComparison; } if (is_set_version()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_settable()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'settable' is unset! Struct:" + toString()); } if (!is_set_version()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'version' is unset! Struct:" + toString()); } // check for sub-struct validity if (settable != null) { settable.validate(); } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_settable = true && (is_set_settable()); list.add(present_settable); if (present_settable) list.add(settable); boolean present_version = true; list.add(present_version); if (present_version) list.add(version); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public ReadableBlobMeta(ReadableBlobMeta other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_settable()) { this.settable = new SettableBlobMeta(other.settable); } this.version = other.version; }
public boolean equals(ReadableBlobMeta that) { if (that == null) return false; boolean this_present_settable = true && this.is_set_settable(); boolean that_present_settable = true && that.is_set_settable(); if (this_present_settable || that_present_settable) { if (!(this_present_settable && that_present_settable)) return false; if (!this.settable.equals(that.settable)) return false; } boolean this_present_version = true; boolean that_present_version = true; if (this_present_version || that_present_version) { if (!(this_present_version && that_present_version)) return false; if (this.version != that.version) 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 SETTABLE: return is_set_settable(); case VERSION: return is_set_version(); } throw new IllegalStateException(); }
@Override public int compareTo(ReadableBlobMeta other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_settable()).compareTo(other.is_set_settable()); if (lastComparison != 0) { return lastComparison; } if (is_set_settable()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.settable, other.settable); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_version()).compareTo(other.is_set_version()); if (lastComparison != 0) { return lastComparison; } if (is_set_version()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_settable()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'settable' is unset! Struct:" + toString()); } if (!is_set_version()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'version' is unset! Struct:" + toString()); } // check for sub-struct validity if (settable != null) { settable.validate(); } }