Interface IUnitNotificationManager

All Known Implementing Classes:
UnitNotificationManager

@Ser public interface IUnitNotificationManager
A manager of unit notifications.
  • 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

      void addNotification(IUnitNotification notification)
      Add a notification.
      Parameters:
      notification - notification to add
    • addNotifications

      void addNotifications(Collection<? extends IUnitNotification> c)
      Add notifications.
      Parameters:
      c - notifications to add
    • removeNotification

      boolean removeNotification(String key)
      Remove a notification by key.
      Parameters:
      key - notification key
      Returns:
      true if a notification was removed
    • getNotification

      IUnitNotification getNotification(String key)
      Retrieve a notification by key.
      Parameters:
      key - notification key
      Returns:
      the notification, or null if none