Package org.lukashian

Enum Class Formatter.DayFormat

java.lang.Object
java.lang.Enum<Formatter.DayFormat>
org.lukashian.Formatter.DayFormat
All Implemented Interfaces:
Serializable, Comparable<Formatter.DayFormat>, Constable
Enclosing class:
Formatter

public static enum Formatter.DayFormat extends Enum<Formatter.DayFormat>
Represents the different ways to format a Day.
  • Enum Constant Details

    • EPOCH

      public static final Formatter.DayFormat EPOCH
      Format the epoch day, i.e. the how manieth day it is since the start of the Lukashian Calendar, irrespective of the year, for example: '15592'.
    • YEAR_FIRST

      public static final Formatter.DayFormat YEAR_FIRST
      Format the year first, then the day inside the year, for example: '5919-43'.
    • DAY_FIRST

      public static final Formatter.DayFormat DAY_FIRST
      Format the day first, then the year of the day, for example: '43-5919'.
    • DAY_ONLY

      public static final Formatter.DayFormat DAY_ONLY
      Format the day only, for example: '43'.
  • Method Details

    • values

      public static Formatter.DayFormat[] 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 Formatter.DayFormat 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