public static enum TimeUnit.Values extends java.lang.Enum<TimeUnit.Values>
enum
representing this enumeration class.
Ordinals have no semantic meaning (your code should not rely on them).
Enum Constant and Description |
---|
_UNKNOWN
Special
enum constant which is used to represent constants
that do not exist in this enumeration binding. |
DAY
Represents
TimeUnit.DAY . |
HOUR
Represents
TimeUnit.HOUR . |
MINUTE
Represents
TimeUnit.MINUTE . |
MONTH
Represents
TimeUnit.MONTH . |
WEEK
Represents
TimeUnit.WEEK . |
Modifier and Type | Method and Description |
---|---|
static TimeUnit.Values |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnit.Values[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeUnit.Values MINUTE
TimeUnit.MINUTE
.public static final TimeUnit.Values HOUR
TimeUnit.HOUR
.public static final TimeUnit.Values DAY
TimeUnit.DAY
.public static final TimeUnit.Values WEEK
TimeUnit.WEEK
.public static final TimeUnit.Values MONTH
TimeUnit.MONTH
.public static final TimeUnit.Values _UNKNOWN
enum
constant which is used to represent constants
that do not exist in this enumeration binding. For example if a
client receives an enumeration constant that only exists in the
newer version of the API of the server, the client source code will
see it represented by _UNKNOWN
constant, because its version
of the native Java enum
lacks the new constant.public static TimeUnit.Values[] values()
for (TimeUnit.Values c : TimeUnit.Values.values()) System.out.println(c);
public static TimeUnit.Values 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 null