Enum ConfigChangeType

java.lang.Object
java.lang.Enum<ConfigChangeType>
net.morimekta.config.ConfigChangeType
All Implemented Interfaces:
Serializable, Comparable<ConfigChangeType>, java.lang.constant.Constable

public enum ConfigChangeType extends Enum<ConfigChangeType>
Types of changes on config content.
  • Enum Constant Details

    • CREATED

      public static final ConfigChangeType CREATED
      The config entry has just been created.
    • MODIFIED

      public static final ConfigChangeType MODIFIED
      The config entry has been modified from a previously known state.
    • DELETED

      public static final ConfigChangeType DELETED
      The config entry has been deleted.
  • Method Details

    • values

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

      public static ConfigChangeType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • lowercase

      public String lowercase()
      One of 'created', 'modified' or 'deleted'.
      Returns:
      The config change name as lowercase.
    • capitalized

      public String capitalized()
      One of 'Created', 'Modified' or 'Deleted'.
      Returns:
      The config change name, capitalized, for e.g. where needed first in sentence.
    • action

      public String action()
      One of 'creating', 'modifying' or 'deleting'.
      Returns:
      The config action (as lowercase).
    • capitalizedAction

      public String capitalizedAction()
      One of 'Creating', 'Modifying' or 'Deleting'.
      Returns:
      The config action, capitalized, for e.g. where needed first in sentence.