|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.epics.pvmanager.TypeSupport<T>
org.epics.pvmanager.NotificationSupport<T>
T
- type for which the notifications are preparedpublic abstract class NotificationSupport<T>
Dedicated notification type support.
Constructor Summary | |
---|---|
NotificationSupport(java.lang.Class<T> clazz)
Creates a new notification type support. |
Method Summary | ||
---|---|---|
static
|
immutableTypeSupport(java.lang.Class<T> clazz)
Support for notification of immutable types. |
|
static
|
notification(T oldValue,
T newValue)
Returns the final value by using the appropriate type support. |
|
abstract Notification<T> |
prepareNotification(T oldValue,
T newValue)
Given the old and new value, prepare the final value that will be notified. |
Methods inherited from class org.epics.pvmanager.TypeSupport |
---|
addTypeSupport, findTypeSupportFor, getType, getTypeSupportFamily, isTypeDirectlySupported, isTypeSupported, typeSupportsFor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotificationSupport(java.lang.Class<T> clazz)
clazz
- the type being supportedMethod Detail |
---|
public static <T> Notification<T> notification(T oldValue, T newValue)
T
- the type of the valueoldValue
- the oldValue, which was previously in the previous notificationnewValue
- the newValue, which was computed during the scanning
public abstract Notification<T> prepareNotification(T oldValue, T newValue)
oldValue
- the oldValue, which was previously in the previous notificationnewValue
- the newValue, which was computed during the scanning
public static <T> NotificationSupport<T> immutableTypeSupport(java.lang.Class<T> clazz)
Object.equals(java.lang.Object)
.
T
- type for which to add supportclazz
- type for which to add support
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |