private static ProfileServerSync deepCopy(ProfileServerSync source) { if (source == null) { return null; } return new ProfileServerSync(source.getResponseStatus()); }
private void encode(GrowingByteBuffer buf, ProfileServerSync profileSync) { buildExtensionHeader(buf, PROFILE_EXTENSION_ID, NOTHING, (profileSync.getResponseStatus() == SyncResponseStatus.RESYNC ? RESYNC : NOTHING), 0); }
profileSyncRequest); profileSyncResponse = new ProfileServerSync(SyncResponseStatus.DELTA); metaData.setProfileHash(ByteBuffer.wrap(profile.getProfileHash())); context.setProfileSyncResponse(profileSyncResponse);
if (profileSync != null ? !profileSync.equals(that.profileSync) : that.profileSync != null) { return false;
@Override public int hashCode() { int result = requestId; result = 31 * result + (status != null ? status.hashCode() : 0); result = 31 * result + (bootstrapSync != null ? bootstrapSync.hashCode() : 0); result = 31 * result + (profileSync != null ? profileSync.hashCode() : 0); result = 31 * result + (configurationSync != null ? configurationSync.hashCode() : 0); result = 31 * result + (notificationSync != null ? notificationSync.hashCode() : 0); result = 31 * result + (userSync != null ? userSync.hashCode() : 0); result = 31 * result + (eventSync != null ? eventSync.hashCode() : 0); result = 31 * result + (redirectSync != null ? redirectSync.hashCode() : 0); result = 31 * result + (logSync != null ? logSync.hashCode() : 0); return result; }
private static ProfileSyncResponse convert(ProfileServerSync profileSyncResponse) { if (profileSyncResponse == null) { return null; } return new ProfileSyncResponse(convert(profileSyncResponse.getResponseStatus())); }
ServerSync response = getResponse(); if (response.getProfileSync() != null && response.getProfileSync().getResponseStatus() != SyncResponseStatus.NO_DELTA) { return true;