public enum DateType extends Enum<DateType>
| Enum Constant and Description |
|---|
ONLY_DATE
只使用 java.util.date 代替
|
SQL_PACK
使用 java.sql 包下的
|
TIME_PACK
使用 java.time 包下的
java8 新的时间类型
|
| Modifier and Type | Method and Description |
|---|---|
static DateType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateType ONLY_DATE
public static final DateType SQL_PACK
public static final DateType TIME_PACK
public static DateType[] values()
for (DateType c : DateType.values()) System.out.println(c);
public static DateType 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. All rights reserved.