public static enum DateTools.Resolution extends Enum<DateTools.Resolution>
Enum Constant and Description |
---|
DAY |
HOUR |
MILLISECOND |
MINUTE |
MONTH |
SECOND |
YEAR |
Modifier and Type | Method and Description |
---|---|
String |
toString()
this method returns the name of the resolution
in lowercase (for backwards compatibility)
|
static DateTools.Resolution |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTools.Resolution[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTools.Resolution YEAR
public static final DateTools.Resolution MONTH
public static final DateTools.Resolution DAY
public static final DateTools.Resolution HOUR
public static final DateTools.Resolution MINUTE
public static final DateTools.Resolution SECOND
public static final DateTools.Resolution MILLISECOND
public static DateTools.Resolution[] values()
for (DateTools.Resolution c : DateTools.Resolution.values()) System.out.println(c);
public static DateTools.Resolution 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 String toString()
toString
in class Enum<DateTools.Resolution>