@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_path = true && (isSetPath()); builder.append(present_path); if (present_path) builder.append(path); boolean present_exactMatch = true; builder.append(present_exactMatch); if (present_exactMatch) builder.append(exactMatch); 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 PATH: return isSetPath(); case EXACT_MATCH: return isSetExactMatch(); } throw new IllegalStateException(); }
public int compareTo(get_all_related_paths_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; get_all_related_paths_args typedOther = (get_all_related_paths_args)other; lastComparison = Boolean.valueOf(isSetPath()).compareTo(typedOther.isSetPath()); if (lastComparison != 0) { return lastComparison; } if (isSetPath()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, typedOther.path); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetExactMatch()).compareTo(typedOther.isSetExactMatch()); if (lastComparison != 0) { return lastComparison; } if (isSetExactMatch()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exactMatch, typedOther.exactMatch); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, get_all_related_paths_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetPath()) { optionals.set(0); } if (struct.isSetExactMatch()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetPath()) { oprot.writeString(struct.path); } if (struct.isSetExactMatch()) { oprot.writeBool(struct.exactMatch); } }
public boolean equals(get_all_related_paths_args that) { if (that == null) return false; boolean this_present_path = true && this.isSetPath(); boolean that_present_path = true && that.isSetPath(); if (this_present_path || that_present_path) { if (!(this_present_path && that_present_path)) return false; if (!this.path.equals(that.path)) return false; } boolean this_present_exactMatch = true; boolean that_present_exactMatch = true; if (this_present_exactMatch || that_present_exactMatch) { if (!(this_present_exactMatch && that_present_exactMatch)) return false; if (this.exactMatch != that.exactMatch) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public get_all_related_paths_args(get_all_related_paths_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetPath()) { this.path = other.path; } this.exactMatch = other.exactMatch; }