Enum Class NotificationType

java.lang.Object
java.lang.Enum<NotificationType>
com.avrix.enums.NotificationType
All Implemented Interfaces:
Serializable, Comparable<NotificationType>, Constable

public enum NotificationType extends Enum<NotificationType>
Enum representing different types of notifications. Each type has an associated icon and color.
  • Enum Constant Details

  • Method Details

    • values

      public static NotificationType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NotificationType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getIcon

      public String getIcon()
      Returns the icon for this notification type.
      Returns:
      The icon.
    • getColor

      public NanoColor getColor()
      Returns the color for this notification type.
      Returns:
      Notification color