public static enum DateTime.Unit extends java.lang.Enum<DateTime.Unit>
| Enum Constant and Description |
|---|
DAY |
HOUR |
MINUTE |
MONTH |
NANOSECONDS |
SECOND |
YEAR |
| Modifier and Type | Method and Description |
|---|---|
static DateTime.Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateTime.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTime.Unit YEAR
public static final DateTime.Unit MONTH
public static final DateTime.Unit DAY
public static final DateTime.Unit HOUR
public static final DateTime.Unit MINUTE
public static final DateTime.Unit SECOND
public static final DateTime.Unit NANOSECONDS
public static DateTime.Unit[] values()
for (DateTime.Unit c : DateTime.Unit.values()) System.out.println(c);
public static DateTime.Unit 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 nullCopyright © 2014. All Rights Reserved.