Enum Class MessageSeverity

java.lang.Object
java.lang.Enum<MessageSeverity>
church.i18n.processing.message.MessageSeverity
All Implemented Interfaces:
MessageType, Serializable, Comparable<MessageSeverity>, Constable

public enum MessageSeverity extends Enum<MessageSeverity> implements MessageType
Typical severities and statuses of message.
  • Enum Constant Details

  • Method Details

    • values

      public static MessageSeverity[] 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 MessageSeverity 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
    • getOrDefault

      @NotNull public static @NotNull MessageSeverity getOrDefault(@Nullable @Nullable String string, @NotNull @NotNull MessageSeverity defaultValue)
      Match a string value with enum values and return case-insensitive matching enum value. If no value matches, return a defaultValue.
      Parameters:
      string - A string value to lookup.
      defaultValue - A default value to return when nothing matches.
      Returns:
      A case-insensitive enum value matching string; defaultValue otherwise.
    • getType

      @NotNull public @NotNull String getType()
      Description copied from interface: MessageType
      Get a string representation of a message type.
      Specified by:
      getType in interface MessageType
      Returns:
      String representation of a type.