@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_hasFullImage = true; builder.append(present_hasFullImage); if (present_hasFullImage) builder.append(hasFullImage); boolean present_pathsDump = true && (isSetPathsDump()); builder.append(present_pathsDump); if (present_pathsDump) builder.append(pathsDump); boolean present_seqNum = true; builder.append(present_seqNum); if (present_seqNum) builder.append(seqNum); boolean present_pathChanges = true && (isSetPathChanges()); builder.append(present_pathChanges); if (present_pathChanges) builder.append(pathChanges); return builder.toHashCode(); }
/** 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 HAS_FULL_IMAGE: return isSetHasFullImage(); case PATHS_DUMP: return isSetPathsDump(); case SEQ_NUM: return isSetSeqNum(); case PATH_CHANGES: return isSetPathChanges(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public TPathsUpdate(TPathsUpdate other) { __isset_bitfield = other.__isset_bitfield; this.hasFullImage = other.hasFullImage; if (other.isSetPathsDump()) { this.pathsDump = new TPathsDump(other.pathsDump); } this.seqNum = other.seqNum; if (other.isSetPathChanges()) { List<TPathChanges> __this__pathChanges = new ArrayList<TPathChanges>(); for (TPathChanges other_element : other.pathChanges) { __this__pathChanges.add(new TPathChanges(other_element)); } this.pathChanges = __this__pathChanges; } }
boolean this_present_pathChanges = true && this.isSetPathChanges(); boolean that_present_pathChanges = true && that.isSetPathChanges(); if (this_present_pathChanges || that_present_pathChanges) { if (!(this_present_pathChanges && that_present_pathChanges))
lastComparison = Boolean.valueOf(isSetPathChanges()).compareTo(typedOther.isSetPathChanges()); if (lastComparison != 0) { return lastComparison; if (isSetPathChanges()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathChanges, typedOther.pathChanges); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetHasFullImage()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'hasFullImage' is unset! Struct:" + toString()); } if (!isSetSeqNum()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'seqNum' is unset! Struct:" + toString()); } if (!isSetPathChanges()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'pathChanges' is unset! Struct:" + toString()); } // check for sub-struct validity if (pathsDump != null) { pathsDump.validate(); } }