Enum Constant and Description |
---|
Days |
Hours |
Microseconds |
Miliseconds |
Minutes |
None |
Seconds |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
java.lang.String |
getUnit() |
static RateUnit |
parseInt(int value) |
static RateUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RateUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RateUnit Microseconds
public static final RateUnit Miliseconds
public static final RateUnit Seconds
public static final RateUnit Minutes
public static final RateUnit Hours
public static final RateUnit Days
public static final RateUnit None
public static RateUnit[] values()
for (RateUnit c : RateUnit.values()) System.out.println(c);
public static RateUnit 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 nullpublic int getCode()
public java.lang.String getUnit()
public static RateUnit parseInt(int value)