public enum Platform extends java.lang.Enum<Platform> implements ChronoPattern<Platform>
Defines the default format pattern of the actual platform.
This pattern type is applicable on the four basic types of Time4J, namely
PlainDate, PlainTime, PlainTimestamp and Moment.
| Enum Constant and Description |
|---|
PATTERN
The details of the platform pattern syntax are platform-dependent and will
follow the syntax described in the Java-6-version of
SimpleDateFormat. |
| Modifier and Type | Method and Description |
|---|---|
FormatEngine<Platform> |
getFormatEngine()
Yields the format engine this pattern is designed for.
|
static Platform |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Platform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Platform PATTERN
The details of the platform pattern syntax are platform-dependent and will
follow the syntax described in the Java-6-version of SimpleDateFormat.
Note that this configuration will not use the best available format engine. A
counter example are ISO-weekdates which are not supported in parsing in order to
preserve compatibility with Java-6. The performance cannot be the best, too. For
higher quality requirements users are strongly advised to use the alternative
net.time4j.format.expert.PatternType in i18n-module.
Timezone conversions always rely on the best available timezone data
which are not necessarily those of the JDK. This is even true in context
of using SimpleDateFormat.
public static Platform[] values()
for (Platform c : Platform.values()) System.out.println(c);
public static Platform valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic FormatEngine<Platform> getFormatEngine()
ChronoPatternYields the format engine this pattern is designed for.
getFormatEngine in interface ChronoPattern<Platform>