public enum TimeUnits extends java.lang.Enum<TimeUnits>
TimeBase
.
The enum members can be used to easily set the smallest time unit that can be
expressed by the classes PointInTime
and Duration
.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.lang.String |
getShortName() |
double |
getTimeBase() |
static TimeUnits |
getTimeUnitByShortName(java.lang.String timeUnit) |
static TimeUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeUnits ps
public static final TimeUnits ns
public static final TimeUnits us
public static final TimeUnits ms
public static final TimeUnits s
public static final TimeUnits m
public static final TimeUnits h
public static final TimeUnits d
public static TimeUnits[] values()
for (TimeUnits c : TimeUnits.values()) System.out.println(c);
public static TimeUnits 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 namejava.lang.NullPointerException
- if the argument is nullpublic double getTimeBase()
public java.lang.String getName()
public java.lang.String getShortName()
public static TimeUnits getTimeUnitByShortName(java.lang.String timeUnit)