Module FXDialogs

Class NotificationInfoLogger

java.lang.Object
com.amirali.fxdialogs.notifications.NotificationInfoLogger

final class NotificationInfoLogger extends Object
  • Constructor Details

    • NotificationInfoLogger

      NotificationInfoLogger()
  • Method Details

    • save

      public static void save(@NotNull @NotNull NotificationInfo info) throws IOException
      save notification info to json file
      Parameters:
      info - notification info
      Throws:
      IOException - file reader,writer exception
    • removeIf

      public static void removeIf(@NotNull @NotNull NotificationInfo info) throws IOException
      remove if notification id is exists
      Parameters:
      info - NotificationInfo
      Throws:
      IOException - file reader,writer exception
    • getNotificationsInfo

      public static List<NotificationInfo> getNotificationsInfo() throws IOException
      returns list of notifications info if json file is exists
      Returns:
      List
      Throws:
      IOException - file reader,writer exception