org.epics.pvmanager
Class Notification<T>

java.lang.Object
  extended by org.epics.pvmanager.Notification<T>
Type Parameters:
T - the type of the new value

public class Notification<T>
extends java.lang.Object

Used by NotificationSupport to communicate whether a new notification is needed, and what should be the type to be notified.

Author:
carcassi

Constructor Summary
Notification(boolean notificationNeeded, T newValue)
          Creates a new notification.
 
Method Summary
 T getNewValue()
          The value to be sent if the notification is needed.
 boolean isNotificationNeeded()
          True if the reader needs to be notified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Notification

public Notification(boolean notificationNeeded,
                    T newValue)
Creates a new notification.

Parameters:
notificationNeeded - true if a notification is needed
newValue - the new value to be sent
Method Detail

isNotificationNeeded

public boolean isNotificationNeeded()
True if the reader needs to be notified.

Returns:
true if notification should be sent

getNewValue

public T getNewValue()
The value to be sent if the notification is needed.

Returns:
the new value to be sent