@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_endpointKey = true && (isSetEndpointKey()); list.add(present_endpointKey); if (present_endpointKey) list.add(endpointKey); boolean present_applicationToken = true && (isSetApplicationToken()); list.add(present_applicationToken); if (present_applicationToken) list.add(applicationToken); boolean present_operationsServerId = true && (isSetOperationsServerId()); list.add(present_operationsServerId); if (present_operationsServerId) list.add(operationsServerId); 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 ENDPOINT_KEY: return isSetEndpointKey(); case APPLICATION_TOKEN: return isSetApplicationToken(); case OPERATIONS_SERVER_ID: return isSetOperationsServerId(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public RouteAddress(RouteAddress other) { if (other.isSetEndpointKey()) { this.endpointKey = other.endpointKey; } if (other.isSetApplicationToken()) { this.applicationToken = other.applicationToken; } if (other.isSetOperationsServerId()) { this.operationsServerId = other.operationsServerId; } }
lastComparison = Boolean.valueOf(isSetApplicationToken()).compareTo(other.isSetApplicationToken()); if (lastComparison != 0) { return lastComparison; if (isSetApplicationToken()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationToken, other.applicationToken); if (lastComparison != 0) {
public boolean equals(RouteAddress that) { if (that == null) return false; boolean this_present_endpointKey = true && this.isSetEndpointKey(); boolean that_present_endpointKey = true && that.isSetEndpointKey(); if (this_present_endpointKey || that_present_endpointKey) { if (!(this_present_endpointKey && that_present_endpointKey)) return false; if (!this.endpointKey.equals(that.endpointKey)) return false; } boolean this_present_applicationToken = true && this.isSetApplicationToken(); boolean that_present_applicationToken = true && that.isSetApplicationToken(); if (this_present_applicationToken || that_present_applicationToken) { if (!(this_present_applicationToken && that_present_applicationToken)) return false; if (!this.applicationToken.equals(that.applicationToken)) return false; } boolean this_present_operationsServerId = true && this.isSetOperationsServerId(); boolean that_present_operationsServerId = true && that.isSetOperationsServerId(); if (this_present_operationsServerId || that_present_operationsServerId) { if (!(this_present_operationsServerId && that_present_operationsServerId)) return false; if (!this.operationsServerId.equals(that.operationsServerId)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, RouteAddress struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetEndpointKey()) { optionals.set(0); } if (struct.isSetApplicationToken()) { optionals.set(1); } if (struct.isSetOperationsServerId()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetEndpointKey()) { oprot.writeBinary(struct.endpointKey); } if (struct.isSetApplicationToken()) { oprot.writeString(struct.applicationToken); } if (struct.isSetOperationsServerId()) { oprot.writeString(struct.operationsServerId); } }