? !userDetachNotification.equals(that.userDetachNotification) : that.userDetachNotification != null) { return false;
@Override public int hashCode() { int result = userAttachResponse != null ? userAttachResponse.hashCode() : 0; result = 31 * result + (userAttachNotification != null ? userAttachNotification.hashCode() : 0); result = 31 * result + (userDetachNotification != null ? userDetachNotification.hashCode() : 0); result = 31 * result + (endpointAttachResponses != null ? endpointAttachResponses.hashCode() : 0); result = 31 * result + (endpointDetachResponses != null ? endpointDetachResponses.hashCode() : 0); return result; }
private static UserServerSync deepCopy(UserServerSync source) { if (source == null) { return null; } UserServerSync copy = new UserServerSync(); if (source.getEndpointAttachResponses() != null) { copy.setEndpointAttachResponses(new ArrayList<>(source.getEndpointAttachResponses())); } if (source.getEndpointDetachResponses() != null) { copy.setEndpointDetachResponses(new ArrayList<>(source.getEndpointDetachResponses())); } if (source.getUserAttachNotification() != null) { copy.setUserAttachNotification(new UserAttachNotification( source.getUserAttachNotification().getUserExternalId(), source .getUserAttachNotification().getEndpointAccessToken())); } if (source.getUserAttachResponse() != null) { UserAttachResponse uarSource = source.getUserAttachResponse(); copy.setUserAttachResponse(new UserAttachResponse( uarSource.getResult(), uarSource.getErrorCode(), uarSource.getErrorReason())); } if (source.getUserDetachNotification() != null) { copy.setUserDetachNotification(new UserDetachNotification( source.getUserDetachNotification().getEndpointAccessToken())); } return copy; }
} else if (message instanceof EndpointUserDetachMessage) { userSyncResponse.setUserDetachNotification( new UserDetachNotification(message.getOriginator())); LOG.debug("[{}][{}] Adding user detach notification", endpointKey, actorKey);
source.getUserDetachNotification().getEndpointAccessToken()));
buf.put(USER_DETACH_NOTIFICATION_FIELD_ID); buf.put(NOTHING); buf.putShort((short) nf.getEndpointAccessToken().length()); putUtf(buf, nf.getEndpointAccessToken());