Package net.time4j.format
Enum Class DisplayMode
- All Implemented Interfaces:
Serializable
,Comparable<DisplayMode>
,java.lang.constant.Constable
,DisplayStyle
Deprecated.
Defines how many details will be displayed in chronological texts.
- Author:
- Meno Hochschild
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.Determines the appropriateDateFormat
-constant.static DisplayMode
ofStyle(int style)
Deprecated.Converts aDateFormat
-constant.static DisplayMode
Deprecated.Returns the enum constant of this class with the specified name.static DisplayMode[]
values()
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.time4j.engine.DisplayStyle
toThreeten
-
Enum Constant Details
-
FULL
Deprecated.Full display with maximum detailed content. -
LONG
Deprecated.Verbose display with many details. -
MEDIUM
Deprecated.Normal display with few details. -
SHORT
Deprecated.Shortened display, typically in numerical form.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getStyleValue
public int getStyleValue()Deprecated.Description copied from interface:DisplayStyle
Determines the appropriate
DateFormat
-constant.- Specified by:
getStyleValue
in interfaceDisplayStyle
- Returns:
- int
- See Also:
DateFormat.FULL
,DateFormat.LONG
,DateFormat.MEDIUM
,DateFormat.SHORT
-
ofStyle
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
-
java.time.format.FormatStyle
instead