public static class WaitFor.Unit extends EnumeratedAttribute
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DAY
day string
|
static java.lang.String |
HOUR
hour string
|
static java.lang.String |
MILLISECOND
millisecond string
|
static java.lang.String |
MINUTE
minute string
|
static java.lang.String |
SECOND
second string
|
static java.lang.String |
WEEK
week string
|
value
Constructor and Description |
---|
Unit()
Constructor the Unit enumerated type.
|
Modifier and Type | Method and Description |
---|---|
long |
getMultiplier()
Convert the value to a multipler (millisecond to unit).
|
java.lang.String[] |
getValues()
This is the only method a subclass needs to implement.
|
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString
public static final java.lang.String MILLISECOND
public static final java.lang.String SECOND
public static final java.lang.String MINUTE
public static final java.lang.String HOUR
public static final java.lang.String DAY
public static final java.lang.String WEEK
public long getMultiplier()
public java.lang.String[] getValues()
EnumeratedAttribute
getValues
in class EnumeratedAttribute
{@inheritDoc}