|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DelayUnit>
be.ac.ulg.montefiore.run.totem.domain.model.DelayUnit
public enum DelayUnit
An enum class that expresses delay units.
Creation date: 06-avr.-07
Enum Constant Summary | |
---|---|
µS
|
|
DEFAULT_UNIT
|
|
MS
|
|
NS
|
|
S
|
Method Summary | |
---|---|
float |
convert(DelayUnit convertFrom,
float number)
Converts a float in the unit given as parameter to the unit of this enum. |
static DelayUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DelayUnit[] |
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, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DelayUnit DEFAULT_UNIT
public static final DelayUnit NS
public static final DelayUnit µS
public static final DelayUnit MS
public static final DelayUnit S
Method Detail |
---|
public static final DelayUnit[] values()
for(DelayUnit c : DelayUnit.values()) System.out.println(c);
public static DelayUnit 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 float convert(DelayUnit convertFrom, float number)
convertFrom
- The unit in which number
must be interpretednumber
- The float to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |