Enum Class DisplayMode

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

@Deprecated public enum DisplayMode extends Enum<DisplayMode> implements DisplayStyle
Deprecated.
Use java.time.format.FormatStyle instead

Defines how many details will be displayed in chronological texts.

Author:
Meno Hochschild
  • Enum Constant Details

    • FULL

      public static final DisplayMode FULL
      Deprecated.
      Full display with maximum detailed content.
    • LONG

      public static final DisplayMode LONG
      Deprecated.
      Verbose display with many details.
    • MEDIUM

      public static final DisplayMode MEDIUM
      Deprecated.
      Normal display with few details.
    • SHORT

      public static final DisplayMode SHORT
      Deprecated.
      Shortened display, typically in numerical form.
  • Method Details

    • values

      public static DisplayMode[] values()
      Deprecated.
      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 DisplayMode valueOf(String name)
      Deprecated.
      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
    • getStyleValue

      public int getStyleValue()
      Deprecated.
      Description copied from interface: DisplayStyle

      Determines the appropriate DateFormat-constant.

      Specified by:
      getStyleValue in interface DisplayStyle
      Returns:
      int
      See Also:
      DateFormat.FULL, DateFormat.LONG, DateFormat.MEDIUM, DateFormat.SHORT
    • ofStyle

      public static DisplayMode ofStyle(int style)
      Deprecated.

      Converts a DateFormat-constant.

      Parameters:
      style - traditional format style
      Returns:
      associated DisplayMode
      Throws:
      UnsupportedOperationException - if given style is not supported
      Since:
      3.10/4.7
      See Also:
      DateFormat.FULL, DateFormat.LONG, DateFormat.MEDIUM, DateFormat.SHORT