Enum Class CalendarSystems

java.lang.Object
java.lang.Enum<CalendarSystems>
de.powerstat.validation.values.CalendarSystems
All Implemented Interfaces:
IValueObject, Serializable, Comparable<CalendarSystems>, Constable

public enum CalendarSystems extends Enum<CalendarSystems> implements IValueObject
Supported calendar systems. Not DSGVO relevant.
  • Enum Constant Details

    • JULIAN

      public static final CalendarSystems JULIAN
      Julian calendar system.
    • GREGORIAN

      public static final CalendarSystems GREGORIAN
      Gregorian calendar system.
  • Field Details

    • action

      private final int action
      Action number.
  • Constructor Details

    • CalendarSystems

      private CalendarSystems(int action)
      Ordinal constructor.
      Parameters:
      action - Action number
  • Method Details

    • values

      public static CalendarSystems[] 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 CalendarSystems 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
    • of

      public static CalendarSystems of(String value)
      CalendarSystems factory.
      Parameters:
      value - CalendarSystems enum string
      Returns:
      CalendarSystems enum
    • getAction

      public int getAction()
      Get action number.
      Returns:
      Action number
    • stringValue

      public String stringValue()
      Returns the value of this CalendarSystems as a string.
      Specified by:
      stringValue in interface IValueObject
      Returns:
      The text value represented by this object after conversion to type string.