@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_redirectionRule = true && (isSetRedirectionRule()); list.add(present_redirectionRule); if (present_redirectionRule) list.add(redirectionRule); return list.hashCode(); }
/** 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 REDIRECTION_RULE: return isSetRedirectionRule(); } throw new IllegalStateException(); }
@Override public int compareTo(setRedirectionRule_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetRedirectionRule()).compareTo(other.isSetRedirectionRule()); if (lastComparison != 0) { return lastComparison; } if (isSetRedirectionRule()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.redirectionRule, other.redirectionRule); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(setRedirectionRule_args that) { if (that == null) return false; boolean this_present_redirectionRule = true && this.isSetRedirectionRule(); boolean that_present_redirectionRule = true && that.isSetRedirectionRule(); if (this_present_redirectionRule || that_present_redirectionRule) { if (!(this_present_redirectionRule && that_present_redirectionRule)) return false; if (!this.redirectionRule.equals(that.redirectionRule)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, setRedirectionRule_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRedirectionRule()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetRedirectionRule()) { struct.redirectionRule.write(oprot); } }
/** * Performs a deep copy on <i>other</i>. */ public setRedirectionRule_args(setRedirectionRule_args other) { if (other.isSetRedirectionRule()) { this.redirectionRule = new RedirectionRule(other.redirectionRule); } }