public static enum Dates.DatetimeUnit extends Enum<Dates.DatetimeUnit>
| Enum Constant and Description |
|---|
day |
hours |
millis |
minutes |
month |
seconds |
week |
year |
| Modifier and Type | Method and Description |
|---|---|
int |
getField() |
static Dates.DatetimeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Dates.DatetimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Dates.DatetimeUnit millis
public static final Dates.DatetimeUnit seconds
public static final Dates.DatetimeUnit minutes
public static final Dates.DatetimeUnit hours
public static final Dates.DatetimeUnit day
public static final Dates.DatetimeUnit week
public static final Dates.DatetimeUnit month
public static final Dates.DatetimeUnit year
public static Dates.DatetimeUnit[] values()
for (Dates.DatetimeUnit c : Dates.DatetimeUnit.values()) System.out.println(c);
public static Dates.DatetimeUnit 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 int getField()
Copyright © 2017. All rights reserved.