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