@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_messages = true && (isSetMessages()); list.add(present_messages); if (present_messages) list.add(messages); return list.hashCode(); }
@Override public int compareTo(onEntityRouteMessages_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetMessages()).compareTo(other.isSetMessages()); if (lastComparison != 0) { return lastComparison; } if (isSetMessages()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.messages, other.messages); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** 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 MESSAGES: return isSetMessages(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, onEntityRouteMessages_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetMessages()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetMessages()) { { oprot.writeI32(struct.messages.size()); for (ThriftEntityRouteMessage _iter36 : struct.messages) { _iter36.write(oprot); } } } }
public boolean equals(onEntityRouteMessages_args that) { if (that == null) return false; boolean this_present_messages = true && this.isSetMessages(); boolean that_present_messages = true && that.isSetMessages(); if (this_present_messages || that_present_messages) { if (!(this_present_messages && that_present_messages)) return false; if (!this.messages.equals(that.messages)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public onEntityRouteMessages_args(onEntityRouteMessages_args other) { if (other.isSetMessages()) { List<ThriftEntityRouteMessage> __this__messages = new ArrayList<ThriftEntityRouteMessage>(other.messages.size()); for (ThriftEntityRouteMessage other_element : other.messages) { __this__messages.add(new ThriftEntityRouteMessage(other_element)); } this.messages = __this__messages; } }