Enum Class LicensingHistoryEvent

java.lang.Object
java.lang.Enum<LicensingHistoryEvent>
com.iizix.license.history.LicensingHistoryEvent
All Implemented Interfaces:
Serializable, Comparable<LicensingHistoryEvent>, Constable

public enum LicensingHistoryEvent extends Enum<LicensingHistoryEvent>
License system event types used in the LicensingHistoryEntry.
Author:
Christopher Mindus
  • Enum Constant Details

  • Field Details

    • value

      public final int value
      The number.
    • text

      protected final String text
      The text.
  • Method Details

    • values

      public static LicensingHistoryEvent[] 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 LicensingHistoryEvent 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
    • getText

      public String getText()
      Gets the English text.
      Returns:
      The string in English for the event.
    • toString

      public String toString()
      Performs toString() by displaying the text instead of the enum name.
      Overrides:
      toString in class Enum<LicensingHistoryEvent>
      Returns:
      The text String.
    • from

      public static LicensingHistoryEvent from(int value)
      Gets the event from a value.
      Parameters:
      value - The value.
      Returns:
      The LicensingHistoryEvent that corresponds with the value (not the ordinal), _UNKNOWN_ if not found. If not found, a log entry with stack trace is done.