@Deprecated public static enum DateUtil.DateType extends java.lang.Enum<DateUtil.DateType>
| Enum Constant and Description |
|---|
DAY
Deprecated.
|
HOUR
Deprecated.
|
MINUTE
Deprecated.
|
SECOND
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
roundTo(DateUtil.DateType dateType,
java.util.GregorianCalendar gc)
Deprecated.
|
static DateUtil.DateType |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static DateUtil.DateType[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateUtil.DateType DAY
public static final DateUtil.DateType HOUR
public static final DateUtil.DateType MINUTE
public static final DateUtil.DateType SECOND
public static DateUtil.DateType[] values()
for (DateUtil.DateType c : DateUtil.DateType.values()) System.out.println(c);
public static DateUtil.DateType 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 java.util.Date roundTo(DateUtil.DateType dateType, java.util.GregorianCalendar gc)