public enum DateStyle extends Enum<DateStyle>
DateTimeBxArea
Enum Constant and Description |
---|
DD_MM_1
日期格式:DD-MM。
|
DD_MM_YYYY_1
日期格式:DD-MM-YYYY。
|
DD_MM_YYYY_2
日期格式:DD/MM/YYYY。
|
LUNAR
农历。
|
MM_DD_1
日期格式:MM-DD。
|
MM_DD_2
日期格式:MM/DD。
|
MM_DD_3
日期格式:MM月DD日。
|
YYYY_MM_DD_1
日期格式:YYYY-MM-DD。
|
YYYY_MM_DD_2
日期格式:YYYY/MM/DD。
|
YYYY_MM_DD_3
日期格式:YYYY年MM月DD日。
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static DateStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateStyle YYYY_MM_DD_1
public static final DateStyle YYYY_MM_DD_2
public static final DateStyle YYYY_MM_DD_3
public static final DateStyle DD_MM_YYYY_1
public static final DateStyle DD_MM_YYYY_2
public static final DateStyle MM_DD_1
public static final DateStyle MM_DD_2
public static final DateStyle MM_DD_3
public static final DateStyle DD_MM_1
public static final DateStyle LUNAR
public final String name
public static DateStyle[] values()
for (DateStyle c : DateStyle.values()) System.out.println(c);
public static DateStyle 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 nullCopyright © 2020 onbon4j. All rights reserved.