@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); builder.append(present_success); if (present_success) builder.append(success); return builder.toHashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public get_all_related_paths_result(get_all_related_paths_result other) { if (other.isSetSuccess()) { Map<String,List<String>> __this__success = new HashMap<String,List<String>>(); for (Map.Entry<String, List<String>> other_element : other.success.entrySet()) { String other_element_key = other_element.getKey(); List<String> other_element_value = other_element.getValue(); String __this__success_copy_key = other_element_key; List<String> __this__success_copy_value = new ArrayList<String>(); for (String other_element_value_element : other_element_value) { __this__success_copy_value.add(other_element_value_element); } __this__success.put(__this__success_copy_key, __this__success_copy_value); } this.success = __this__success; } }
/** 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 SUCCESS: return isSetSuccess(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, get_all_related_paths_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); for (Map.Entry<String, List<String>> _iter147 : struct.success.entrySet()) { oprot.writeString(_iter147.getKey()); { oprot.writeI32(_iter147.getValue().size()); for (String _iter148 : _iter147.getValue()) { oprot.writeString(_iter148); } } } } } }
public int compareTo(get_all_related_paths_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; get_all_related_paths_result typedOther = (get_all_related_paths_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(get_all_related_paths_result that) { if (that == null) return false; boolean this_present_success = true && this.isSetSuccess(); boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; if (!this.success.equals(that.success)) return false; } return true; }
public Map<String,List<String>> recv_get_all_related_paths() throws org.apache.thrift.TException { get_all_related_paths_result result = new get_all_related_paths_result(); receiveBase(result, "get_all_related_paths"); if (result.isSetSuccess()) { return result.success; } throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_all_related_paths failed: unknown result"); }