public static enum PcpScale.TimeScale extends java.lang.Enum<PcpScale.TimeScale> implements PcpScale<javax.measure.quantity.Time>
PcpScale.SpaceScale, PcpScale.TimeScale, PcpScale.UnitScale
Enum Constant and Description |
---|
HOUR |
MICROSECOND |
MILLISECOND |
MINUTE |
NANOSECOND |
SECOND |
Modifier and Type | Field and Description |
---|---|
private int |
pmUnitsValue |
private javax.measure.Unit<javax.measure.quantity.Time> |
unit |
Modifier and Type | Method and Description |
---|---|
int |
getPmUnitsValue() |
javax.measure.Unit<javax.measure.quantity.Time> |
getUnit() |
static PcpScale.TimeScale |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PcpScale.TimeScale[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PcpScale.TimeScale NANOSECOND
public static final PcpScale.TimeScale MICROSECOND
public static final PcpScale.TimeScale MILLISECOND
public static final PcpScale.TimeScale SECOND
public static final PcpScale.TimeScale MINUTE
public static final PcpScale.TimeScale HOUR
private final int pmUnitsValue
private final javax.measure.Unit<javax.measure.quantity.Time> unit
public static PcpScale.TimeScale[] values()
for (PcpScale.TimeScale c : PcpScale.TimeScale.values()) System.out.println(c);
public static PcpScale.TimeScale 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 javax.measure.Unit<javax.measure.quantity.Time> getUnit()
public int getPmUnitsValue()
getPmUnitsValue
in interface UnitValued