|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Time>
com.pmease.quickbuild.plugin.report.engine.util.quantity.Time
public enum Time
Provides a unit to allow conversions and unambiguous passing around of time
Amount
s.
Enum Constant Summary | |
---|---|
DAYS
|
|
HOURS
|
|
MICROSECONDS
|
|
MILLISECONDS
|
|
MINUTES
|
|
NANOSECONDS
|
|
SECONDS
|
Method Summary | |
---|---|
java.util.concurrent.TimeUnit |
getTimeUnit()
Returns the equivalent TimeUnit . |
double |
multiplier()
Returns the weight of this unit relative to other units in the same hierarchy. |
java.lang.String |
toString()
|
static Time |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Time[] |
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, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Time NANOSECONDS
public static final Time MICROSECONDS
public static final Time MILLISECONDS
public static final Time SECONDS
public static final Time MINUTES
public static final Time HOURS
public static final Time DAYS
Method Detail |
---|
public static Time[] values()
for(Time c : Time.values()) System.out.println(c);
public static Time 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 double multiplier()
Unit
multiplier
in interface Unit<Time>
public java.util.concurrent.TimeUnit getTimeUnit()
TimeUnit
.
public java.lang.String toString()
toString
in class java.lang.Enum<Time>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |