public enum SIUnitPrefixes extends java.lang.Enum<SIUnitPrefixes>
Enum Constant and Description |
---|
ATTO |
CENTI |
DECI |
DEKA |
EXA |
FEMTO |
GIGA |
HECTO |
KILO |
MEGA |
MICRO |
MILLI |
NANO |
PETA |
PICO |
TERA |
YOCTO |
YOTTA |
ZEPTO |
ZETTA |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
prefixName()
Return the name of the given unit prefix as a string.
|
java.lang.String |
prefixSymbol()
Return the short symbol representing the given unit prefix as a string.
|
double |
unitFactor()
Return the unit factor associated with the given unit prefix.
|
static SIUnitPrefixes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SIUnitPrefixes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SIUnitPrefixes YOTTA
public static final SIUnitPrefixes ZETTA
public static final SIUnitPrefixes EXA
public static final SIUnitPrefixes PETA
public static final SIUnitPrefixes TERA
public static final SIUnitPrefixes GIGA
public static final SIUnitPrefixes MEGA
public static final SIUnitPrefixes KILO
public static final SIUnitPrefixes HECTO
public static final SIUnitPrefixes DEKA
public static final SIUnitPrefixes DECI
public static final SIUnitPrefixes CENTI
public static final SIUnitPrefixes MILLI
public static final SIUnitPrefixes MICRO
public static final SIUnitPrefixes NANO
public static final SIUnitPrefixes PICO
public static final SIUnitPrefixes FEMTO
public static final SIUnitPrefixes ATTO
public static final SIUnitPrefixes ZEPTO
public static final SIUnitPrefixes YOCTO
public static SIUnitPrefixes[] values()
for (SIUnitPrefixes c : SIUnitPrefixes.values()) System.out.println(c);
public static SIUnitPrefixes 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 unitFactor()
public java.lang.String prefixName()
public java.lang.String prefixSymbol()