@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_type = true; builder.append(present_type); if (present_type) builder.append(type); boolean present_pathElement = true && (isSetPathElement()); builder.append(present_pathElement); if (present_pathElement) builder.append(pathElement); boolean present_children = true && (isSetChildren()); builder.append(present_children); if (present_children) builder.append(children); boolean present_authzObjs = true && (isSetAuthzObjs()); builder.append(present_authzObjs); if (present_authzObjs) builder.append(authzObjs); return builder.toHashCode(); }
if (isSetAuthzObjs()) { if (!first) sb.append(", "); sb.append("authzObjs:");
/** * Performs a deep copy on <i>other</i>. */ public TPathEntry(TPathEntry other) { __isset_bitfield = other.__isset_bitfield; this.type = other.type; if (other.isSetPathElement()) { this.pathElement = other.pathElement; } if (other.isSetChildren()) { Set<Integer> __this__children = new HashSet<Integer>(); for (Integer other_element : other.children) { __this__children.add(other_element); } this.children = __this__children; } if (other.isSetAuthzObjs()) { Set<String> __this__authzObjs = new HashSet<String>(); for (String other_element : other.authzObjs) { __this__authzObjs.add(other_element); } this.authzObjs = __this__authzObjs; } }
/** 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 TYPE: return isSetType(); case PATH_ELEMENT: return isSetPathElement(); case CHILDREN: return isSetChildren(); case AUTHZ_OBJS: return isSetAuthzObjs(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetAuthzObjs()).compareTo(typedOther.isSetAuthzObjs()); if (lastComparison != 0) { return lastComparison; if (isSetAuthzObjs()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzObjs, typedOther.authzObjs); if (lastComparison != 0) {
boolean this_present_authzObjs = true && this.isSetAuthzObjs(); boolean that_present_authzObjs = true && that.isSetAuthzObjs(); if (this_present_authzObjs || that_present_authzObjs) { if (!(this_present_authzObjs && that_present_authzObjs))
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TPathEntry struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeByte(struct.type); oprot.writeString(struct.pathElement); { oprot.writeI32(struct.children.size()); for (int _iter40 : struct.children) { oprot.writeI32(_iter40); } } BitSet optionals = new BitSet(); if (struct.isSetAuthzObjs()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetAuthzObjs()) { { oprot.writeI32(struct.authzObjs.size()); for (String _iter41 : struct.authzObjs) { oprot.writeString(_iter41); } } } }
if (struct.isSetAuthzObjs()) { oprot.writeFieldBegin(AUTHZ_OBJS_FIELD_DESC);