public enum DateStyle extends java.lang.Enum<DateStyle>
DateTimeBxArea| Enum Constant and Description |
|---|
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 | Field and Description |
|---|---|
java.lang.String |
name |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
static DateStyle |
valueOf(java.lang.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 LUNAR
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 YYYY_MM_DD_1
public static final DateStyle YYYY_MM_DD_2
public static final DateStyle YYYY_MM_DD_3
public java.lang.String toString()
toString in class java.lang.Enum<DateStyle>public static DateStyle 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 static DateStyle[] values()
for (DateStyle c : DateStyle.values()) System.out.println(c);