@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(); }
/** * 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(); }
boolean this_present_children = true && this.isSetChildren(); boolean that_present_children = true && that.isSetChildren(); if (this_present_children || that_present_children) { if (!(this_present_children && that_present_children))
lastComparison = Boolean.valueOf(isSetChildren()).compareTo(typedOther.isSetChildren()); if (lastComparison != 0) { return lastComparison; if (isSetChildren()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.children, typedOther.children); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetType()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'type' is unset! Struct:" + toString()); } if (!isSetPathElement()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'pathElement' is unset! Struct:" + toString()); } if (!isSetChildren()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'children' is unset! Struct:" + toString()); } // check for sub-struct validity }