Enum Class IsoDateStyle

java.lang.Object
java.lang.Enum<IsoDateStyle>
net.time4j.format.expert.IsoDateStyle
All Implemented Interfaces:
Serializable, Comparable<IsoDateStyle>, java.lang.constant.Constable

public enum IsoDateStyle extends Enum<IsoDateStyle>

Determines a suitable style in ISO-format for printing gregorian calendar dates.

Since:
4.18
Author:
Meno Hochschild
  • Enum Constant Details

    • BASIC_CALENDAR_DATE

      public static final IsoDateStyle BASIC_CALENDAR_DATE

      Style "20160425".

    • BASIC_ORDINAL_DATE

      public static final IsoDateStyle BASIC_ORDINAL_DATE

      Style "2016116".

    • BASIC_WEEK_DATE

      public static final IsoDateStyle BASIC_WEEK_DATE

      Style "2016W171".

    • EXTENDED_CALENDAR_DATE

      public static final IsoDateStyle EXTENDED_CALENDAR_DATE

      Style "2016-04-25".

    • EXTENDED_ORDINAL_DATE

      public static final IsoDateStyle EXTENDED_ORDINAL_DATE

      Style "2016-116".

    • EXTENDED_WEEK_DATE

      public static final IsoDateStyle EXTENDED_WEEK_DATE

      Style "2016-W17-1".

  • Method Details

    • values

      public static IsoDateStyle[] 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 IsoDateStyle 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
    • isExtended

      public boolean isExtended()

      Determines, if this style describes the basic or extended iso-format.

      Returns:
      true if extended else false