public enum DatePart extends Enum<DatePart>
Modifier and Type | Method and Description |
---|---|
Format |
getFormat() |
Format |
getFormat(DateStyle style) |
Format |
getFormat(DateStyle style,
Locale locale) |
Format |
getFormat(Locale locale) |
static DatePart |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatePart[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatePart DATE
public static final DatePart DATETIME
public static final DatePart TIME
public static DatePart[] values()
for (DatePart c : DatePart.values()) System.out.println(c);
public static DatePart valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Format getFormat()
Copyright © 2019 Optimatika. All rights reserved.