|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.obe.util.AbstractEnum org.obe.xpdl.model.misc.DurationUnit
Class which defines all duration units available. This class defines the following duration units:
Field Summary | |
static DurationUnit |
DAY
|
static int |
DAY_INT
|
static DurationUnit |
DEFAULT
|
static DurationUnit |
HOUR
|
static int |
HOUR_INT
|
static DurationUnit |
MINUTE
|
static int |
MINUTE_INT
|
static DurationUnit |
MONTH
|
static int |
MONTH_INT
|
static DurationUnit |
SECOND
|
static int |
SECOND_INT
|
static java.util.List |
VALUES
|
static DurationUnit |
YEAR
|
static int |
YEAR_INT
|
Fields inherited from class org.obe.util.AbstractEnum |
name, ordinal |
Method Summary | |
java.util.List |
family()
Returns an immutable list of the members of the enumerated type. |
int |
getJDKCalendarField()
Returns the integer code for the corresponding JDK Calendar field. |
long |
toMilliseconds()
Converts the duration unit to milliseconds. |
static DurationUnit |
valueOf(java.lang.String tag)
Converts the specified type String to a DurationUnit object. |
Methods inherited from class org.obe.util.AbstractEnum |
clinit, clone, compareTo, equals, hashCode, readResolve, toString, value |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int SECOND_INT
public static final int MINUTE_INT
public static final int HOUR_INT
public static final int DAY_INT
public static final int MONTH_INT
public static final int YEAR_INT
public static final DurationUnit SECOND
public static final DurationUnit MINUTE
public static final DurationUnit HOUR
public static final DurationUnit DAY
public static final DurationUnit MONTH
public static final DurationUnit YEAR
public static final DurationUnit DEFAULT
public static final java.util.List VALUES
Method Detail |
public static DurationUnit valueOf(java.lang.String tag)
tag
- The duration unit String
public int getJDKCalendarField()
java.util.Calendar.add(int, int)
method.
java.util.Calendar
class.public long toMilliseconds()
MONTH
and YEAR
this method
returns only a rough approximation based on 30 days per month and 365
days per year respectively. Be wary of using the resulting milliseconds
value for serious temporal computations.
public java.util.List family()
Enum
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |