T - the type of the new valuepublic class Notification<T> extends Object
NotificationSupport to communicate whether a new notification
is needed, and what should be the type to be notified.| Constructor and Description |
|---|
Notification(boolean notificationNeeded,
T newValue)
Creates a new notification.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getNewValue()
The value to be sent if the notification is needed.
|
boolean |
isNotificationNeeded()
True if the reader needs to be notified.
|
public Notification(boolean notificationNeeded,
T newValue)
notificationNeeded - true if a notification is needednewValue - the new value to be sentpublic boolean isNotificationNeeded()
public T getNewValue()
Copyright © 2010–2015. All rights reserved.