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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionintDeprecated.Determines the appropriateDateFormat-constant.static DisplayModeofStyle(int style)Deprecated.Converts aDateFormat-constant.static DisplayModeDeprecated.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.EnumcompareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface net.time4j.engine.DisplayStyletoThreeten
- 
Enum Constant Details- 
FULLDeprecated.Full display with maximum detailed content.
- 
LONGDeprecated.Verbose display with many details.
- 
MEDIUMDeprecated.Normal display with few details.
- 
SHORTDeprecated.Shortened display, typically in numerical form.
 
- 
- 
Method Details- 
valuesDeprecated.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
 
- 
valueOfDeprecated.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
 
- 
getStyleValuepublic int getStyleValue()Deprecated.Description copied from interface:DisplayStyleDetermines the appropriate DateFormat-constant.- Specified by:
- getStyleValuein interface- DisplayStyle
- Returns:
- int
- See Also:
- DateFormat.FULL,- DateFormat.LONG,- DateFormat.MEDIUM,- DateFormat.SHORT
 
- 
ofStyleDeprecated.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.FormatStyleinstead