Package net.time4j.format.expert
Enum Class IsoDateStyle
- All Implemented Interfaces:
Serializable
,Comparable<IsoDateStyle>
,java.lang.constant.Constable
Determines a suitable style in ISO-format for printing gregorian calendar dates.
- Since:
- 4.18
- Author:
- Meno Hochschild
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionStyle "20160425".Style "2016116".Style "2016W171".Style "2016-04-25".Style "2016-116".Style "2016-W17-1". -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines, if this style describes the basic or extended iso-format.static IsoDateStyle
Returns the enum constant of this class with the specified name.static IsoDateStyle[]
values()
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
-
Enum Constant Details
-
BASIC_CALENDAR_DATE
Style "20160425".
-
BASIC_ORDINAL_DATE
Style "2016116".
-
BASIC_WEEK_DATE
Style "2016W171".
-
EXTENDED_CALENDAR_DATE
Style "2016-04-25".
-
EXTENDED_ORDINAL_DATE
Style "2016-116".
-
EXTENDED_WEEK_DATE
Style "2016-W17-1".
-
-
Method Details
-
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
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
-
isExtended
public boolean isExtended()Determines, if this style describes the basic or extended iso-format.
- Returns:
true
if extended elsefalse
-