Package com.pnfsoftware.jeb.core.units
Interface IUnitNotificationManager
- All Known Implementing Classes:
UnitNotificationManager
A manager of
unit notifications.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotification(IUnitNotification notification) Add a notification.voidaddNotifications(Collection<? extends IUnitNotification> c) Add notifications.getNotification(String key) Retrieve a notification by key.intRetrieve the number of notifications.Retrieve the notifications.booleanremoveNotification(String key) Remove a notification by key.
-
Method Details
-
getNotifications
List<IUnitNotification> getNotifications()Retrieve the notifications.- Returns:
- notifications, possibly empty
-
getNotificationCount
int getNotificationCount()Retrieve the number of notifications.- Returns:
- notification count
-
addNotification
Add a notification.- Parameters:
notification- notification to add
-
addNotifications
Add notifications.- Parameters:
c- notifications to add
-
removeNotification
Remove a notification by key.- Parameters:
key- notification key- Returns:
- true if a notification was removed
-
getNotification
Retrieve a notification by key.- Parameters:
key- notification key- Returns:
- the notification, or null if none
-