|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<TimeUnit>
com.google.code.jetm.maven.data.TimeUnit
public enum TimeUnit
Enumerations of the time units supported by this report.
Enum Constant Summary | |
---|---|
MILLISECONDS
Milliseconds. |
|
SECONDS
Seconds |
Method Summary | |
---|---|
double |
fromMilliseconds(double micros)
Convert microseconds to this unit's value. |
static TimeUnit |
fromMojoAbbreviation(String abbreviation)
Get a time unit from the appropriate TimingReportMojo abbreviate. |
String |
getDisplayName()
Get the display name of this time unit. |
long |
getDivisionValue()
Get the value by which this unit divides in order to convert from milliseconds to this unit. |
static TimeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TimeUnit[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TimeUnit MILLISECONDS
public static final TimeUnit SECONDS
Method Detail |
---|
public static TimeUnit[] values()
for (TimeUnit c : TimeUnit.values()) System.out.println(c);
public static TimeUnit valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static TimeUnit fromMojoAbbreviation(String abbreviation)
TimingReportMojo
abbreviate. The comparison is case-insensitive.
abbreviation
- The abbreviation from which to obtain the corresponding enumeration.
TimeUnit
enumeration corresponding to the given abbreviation:
MILLISECONDS
.SECONDS
IllegalArgumentException
- If the given abbreviation is not known.public double fromMilliseconds(double micros)
micros
- The number of microseconds.
public String getDisplayName()
public long getDivisionValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |