@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_tenantId = true && (isSetTenantId()); list.add(present_tenantId); if (present_tenantId) list.add(tenantId); boolean present_userId = true && (isSetUserId()); list.add(present_userId); if (present_userId) list.add(userId); boolean present_applicationToken = true && (isSetApplicationToken()); list.add(present_applicationToken); if (present_applicationToken) list.add(applicationToken); boolean present_endpointKey = true && (isSetEndpointKey()); list.add(present_endpointKey); if (present_endpointKey) list.add(endpointKey); boolean present_ucfHash = true && (isSetUcfHash()); list.add(present_ucfHash); if (present_ucfHash) list.add(ucfHash); 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 TENANT_ID: return isSetTenantId(); case USER_ID: return isSetUserId(); case APPLICATION_TOKEN: return isSetApplicationToken(); case ENDPOINT_KEY: return isSetEndpointKey(); case UCF_HASH: return isSetUcfHash(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetTenantId()).compareTo(other.isSetTenantId()); if (lastComparison != 0) { return lastComparison; if (isSetTenantId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tenantId, other.tenantId); if (lastComparison != 0) {
return false; boolean this_present_tenantId = true && this.isSetTenantId(); boolean that_present_tenantId = true && that.isSetTenantId(); if (this_present_tenantId || that_present_tenantId) { if (!(this_present_tenantId && that_present_tenantId))
TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTenantId()) { optionals.set(0); if (struct.isSetTenantId()) { oprot.writeString(struct.tenantId);
/** * Performs a deep copy on <i>other</i>. */ public EndpointStateUpdate(EndpointStateUpdate other) { if (other.isSetTenantId()) { this.tenantId = other.tenantId; } if (other.isSetUserId()) { this.userId = other.userId; } if (other.isSetApplicationToken()) { this.applicationToken = other.applicationToken; } if (other.isSetEndpointKey()) { this.endpointKey = other.endpointKey; } if (other.isSetUcfHash()) { this.ucfHash = org.apache.thrift.TBaseHelper.copyBinary(other.ucfHash); } }