|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<HighLevelProcess.TimeUnit>
org.processmining.framework.models.hlprocess.HighLevelProcess.TimeUnit
public static enum HighLevelProcess.TimeUnit
Class representing a time unit, such as "hour" or "millisecond". The following time units can be represented by this class TimeUnit.YEARS, TimeUnit.MONTHS, TimeUnit.WEEKS, TimeUnit.DAYS, TimeUnit.HOURS, TimeUnit.MINUTES, TimeUnit.SECONDS, TimeUnit.MILLISECONDS. Actually, an instance of the class TimeUnit can simply be create by TimeUnit. and followed by the constant (e.g. DAYS)
Enum Constant Summary | |
---|---|
DAYS
|
|
HOURS
|
|
MILLISECONDS
|
|
MINUTES
|
|
MONTHS
|
|
SECONDS
|
|
WEEKS
|
|
YEARS
|
Method Summary | |
---|---|
int |
getConversionValue()
Returns the value by which a time value in seconds needs to be devided in order to yield the respective time unit. |
java.util.ArrayList<HighLevelProcess.TimeUnit> |
getValues()
Returns a list with all possible timeunit values |
java.lang.String |
toString()
|
static HighLevelProcess.TimeUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static HighLevelProcess.TimeUnit[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final HighLevelProcess.TimeUnit YEARS
public static final HighLevelProcess.TimeUnit MONTHS
public static final HighLevelProcess.TimeUnit WEEKS
public static final HighLevelProcess.TimeUnit DAYS
public static final HighLevelProcess.TimeUnit HOURS
public static final HighLevelProcess.TimeUnit MINUTES
public static final HighLevelProcess.TimeUnit SECONDS
public static final HighLevelProcess.TimeUnit MILLISECONDS
Method Detail |
---|
public static final HighLevelProcess.TimeUnit[] values()
for(HighLevelProcess.TimeUnit c : HighLevelProcess.TimeUnit.values()) System.out.println(c);
public static HighLevelProcess.TimeUnit 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 namepublic java.util.ArrayList<HighLevelProcess.TimeUnit> getValues()
public java.lang.String toString()
toString
in class java.lang.Enum<HighLevelProcess.TimeUnit>
public int getConversionValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |