@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_authzObj = true && (isSetAuthzObj()); builder.append(present_authzObj); if (present_authzObj) builder.append(authzObj); boolean present_addPaths = true && (isSetAddPaths()); builder.append(present_addPaths); if (present_addPaths) builder.append(addPaths); boolean present_delPaths = true && (isSetDelPaths()); builder.append(present_delPaths); if (present_delPaths) builder.append(delPaths); 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 AUTHZ_OBJ: return isSetAuthzObj(); case ADD_PATHS: return isSetAddPaths(); case DEL_PATHS: return isSetDelPaths(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public TPathChanges(TPathChanges other) { if (other.isSetAuthzObj()) { this.authzObj = other.authzObj; } if (other.isSetAddPaths()) { List<List<String>> __this__addPaths = new ArrayList<List<String>>(); for (List<String> other_element : other.addPaths) { List<String> __this__addPaths_copy = new ArrayList<String>(); for (String other_element_element : other_element) { __this__addPaths_copy.add(other_element_element); } __this__addPaths.add(__this__addPaths_copy); } this.addPaths = __this__addPaths; } if (other.isSetDelPaths()) { List<List<String>> __this__delPaths = new ArrayList<List<String>>(); for (List<String> other_element : other.delPaths) { List<String> __this__delPaths_copy = new ArrayList<String>(); for (String other_element_element : other_element) { __this__delPaths_copy.add(other_element_element); } __this__delPaths.add(__this__delPaths_copy); } this.delPaths = __this__delPaths; } }
lastComparison = Boolean.valueOf(isSetAddPaths()).compareTo(typedOther.isSetAddPaths()); if (lastComparison != 0) { return lastComparison; if (isSetAddPaths()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addPaths, typedOther.addPaths); if (lastComparison != 0) {
public boolean equals(TPathChanges that) { if (that == null) return false; boolean this_present_authzObj = true && this.isSetAuthzObj(); boolean that_present_authzObj = true && that.isSetAuthzObj(); if (this_present_authzObj || that_present_authzObj) { if (!(this_present_authzObj && that_present_authzObj)) return false; if (!this.authzObj.equals(that.authzObj)) return false; } boolean this_present_addPaths = true && this.isSetAddPaths(); boolean that_present_addPaths = true && that.isSetAddPaths(); if (this_present_addPaths || that_present_addPaths) { if (!(this_present_addPaths && that_present_addPaths)) return false; if (!this.addPaths.equals(that.addPaths)) return false; } boolean this_present_delPaths = true && this.isSetDelPaths(); boolean that_present_delPaths = true && that.isSetDelPaths(); if (this_present_delPaths || that_present_delPaths) { if (!(this_present_delPaths && that_present_delPaths)) return false; if (!this.delPaths.equals(that.delPaths)) return false; } return true; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetAuthzObj()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'authzObj' is unset! Struct:" + toString()); } if (!isSetAddPaths()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'addPaths' is unset! Struct:" + toString()); } if (!isSetDelPaths()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'delPaths' is unset! Struct:" + toString()); } // check for sub-struct validity }