Enum Constant and Description |
---|
day |
hour |
millisecond |
minute |
month |
second |
week |
year |
Modifier and Type | Method and Description |
---|---|
static DatePart |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DatePart[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatePart year
public static final DatePart month
public static final DatePart week
public static final DatePart day
public static final DatePart hour
public static final DatePart minute
public static final DatePart second
public static final DatePart millisecond
public static DatePart[] values()
for (DatePart c : DatePart.values()) System.out.println(c);
public static DatePart 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 © 2007-2013 Mysema Ltd. All Rights Reserved.