@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_pathsUpdate = true && (isSetPathsUpdate()); builder.append(present_pathsUpdate); if (present_pathsUpdate) builder.append(pathsUpdate); 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 PATHS_UPDATE: return isSetPathsUpdate(); } throw new IllegalStateException(); }
public int compareTo(handle_hms_notification_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; handle_hms_notification_args typedOther = (handle_hms_notification_args)other; lastComparison = Boolean.valueOf(isSetPathsUpdate()).compareTo(typedOther.isSetPathsUpdate()); if (lastComparison != 0) { return lastComparison; } if (isSetPathsUpdate()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pathsUpdate, typedOther.pathsUpdate); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(handle_hms_notification_args that) { if (that == null) return false; boolean this_present_pathsUpdate = true && this.isSetPathsUpdate(); boolean that_present_pathsUpdate = true && that.isSetPathsUpdate(); if (this_present_pathsUpdate || that_present_pathsUpdate) { if (!(this_present_pathsUpdate && that_present_pathsUpdate)) return false; if (!this.pathsUpdate.equals(that.pathsUpdate)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public handle_hms_notification_args(handle_hms_notification_args other) { if (other.isSetPathsUpdate()) { this.pathsUpdate = new TPathsUpdate(other.pathsUpdate); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, handle_hms_notification_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetPathsUpdate()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetPathsUpdate()) { struct.pathsUpdate.write(oprot); } }