public static enum DateWrapper.Unit extends Enum<DateWrapper.Unit>
DateWrapper.add(Unit, int)
method takesEnum Constant and Description |
---|
DAY |
HOUR |
MILLI |
MINUTE |
MONTH |
SECOND |
YEAR |
Modifier and Type | Method and Description |
---|---|
static DateWrapper.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateWrapper.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateWrapper.Unit DAY
public static final DateWrapper.Unit HOUR
public static final DateWrapper.Unit MILLI
public static final DateWrapper.Unit MINUTE
public static final DateWrapper.Unit MONTH
public static final DateWrapper.Unit SECOND
public static final DateWrapper.Unit YEAR
public static DateWrapper.Unit[] values()
for (DateWrapper.Unit c : DateWrapper.Unit.values()) System.out.println(c);
public static DateWrapper.Unit 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 © 2015. All rights reserved.