public enum DatePart extends Enum<DatePart>
DatePart
defines date parts for various date/time operationsEnum Constant and Description |
---|
day |
hour |
millisecond |
minute |
month |
second |
week |
year |
Modifier and Type | Method and Description |
---|---|
static DatePart |
valueOf(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(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 © 2007–2016 Querydsl. All rights reserved.