/** * Returns the final value by using the appropriate type support. * * @param <T> the type of the value * @param oldValue the oldValue, which was previously in the previous notification * @param newValue the newValue, which was computed during the scanning * @return the value to be notified */ public static <T> Notification<T> notification(final T oldValue, final T newValue) { NotificationSupport<T> support = findNotificationSupportFor(newValue); return support.prepareNotification(oldValue, newValue); }