@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(); }
sb.append(this.hasFullImage); first = false; if (isSetPathsDump()) { if (!first) sb.append(", "); sb.append("pathsDump:");
/** 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_pathsDump = true && this.isSetPathsDump(); boolean that_present_pathsDump = true && that.isSetPathsDump(); if (this_present_pathsDump || that_present_pathsDump) { if (!(this_present_pathsDump && that_present_pathsDump))
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TPathsUpdate struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeBool(struct.hasFullImage); oprot.writeI64(struct.seqNum); { oprot.writeI32(struct.pathChanges.size()); for (TPathChanges _iter62 : struct.pathChanges) { _iter62.write(oprot); } } BitSet optionals = new BitSet(); if (struct.isSetPathsDump()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetPathsDump()) { struct.pathsDump.write(oprot); } }
lastComparison = Boolean.valueOf(isSetPathsDump()).compareTo(typedOther.isSetPathsDump()); if (lastComparison != 0) { return lastComparison; if (isSetPathsDump()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathsDump, typedOther.pathsDump); if (lastComparison != 0) {
oprot.writeFieldEnd(); if (struct.pathsDump != null) { if (struct.isSetPathsDump()) { oprot.writeFieldBegin(PATHS_DUMP_FIELD_DESC); struct.pathsDump.write(oprot);