public enum Time extends Enum<Time>
Enum Constant and Description |
---|
MilliSeconds
Enum for milli seconds.
|
Minutes
Enum for minutes.
|
NanoSeconds
Enum for nano seconds.
|
Seconds
Enum for seconds.
|
Modifier and Type | Method and Description |
---|---|
double |
getNumberOfMilliSeconds()
Getting the number of milli seconds.
|
String |
getUnit()
Getting the unit.
|
String |
getUnitDescription()
Getting the full unitname.
|
static Time |
valueOf(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 are declared.
|
public static final Time NanoSeconds
public static final Time MilliSeconds
public static final Time Seconds
public static final Time Minutes
public static Time[] values()
for (Time c : Time.values()) System.out.println(c);
public static Time valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic double getNumberOfMilliSeconds()
public String getUnit()
public String getUnitDescription()
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.