public enum Prefix extends java.lang.Enum<Prefix>
PrefixedUnit
Enum Constant | Description |
---|---|
ATTO |
|
CENTI |
|
DECI |
|
DEKA |
|
EXA |
|
FEMTO |
|
GIGA |
|
HECTO |
|
KILO |
|
MEGA |
|
MICRO |
|
MILLI |
|
NANO |
|
NULL |
|
PETA |
|
PICO |
|
TERA |
|
YOCTO |
|
YOTTA |
|
ZEPTO |
|
ZETTA |
Modifier and Type | Field | Description |
---|---|---|
static boolean |
ALLOWED |
Constant used when invoking constructor of SimpleUnit class to indicate
that the unit permits the use of a prefix.
|
static boolean |
NOT_ALLOWED |
Constant used when invoking constructor of SimpleUnit class to indicate
that the unit does not permit the use of a prefix.
|
Modifier and Type | Method | Description |
---|---|---|
static Prefix |
keySelect(java.lang.String aKey) |
Allows specifying a Prefix from its symbol.
|
java.lang.String |
symbol() |
Symbol used to show that prefix is part of the unit.
|
java.lang.String |
toString() |
|
double |
value() |
|
static Prefix |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Prefix[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Prefix YOCTO
public static final Prefix ZEPTO
public static final Prefix ATTO
public static final Prefix FEMTO
public static final Prefix PICO
public static final Prefix NANO
public static final Prefix MICRO
public static final Prefix MILLI
public static final Prefix CENTI
public static final Prefix DECI
public static final Prefix NULL
public static final Prefix DEKA
public static final Prefix HECTO
public static final Prefix KILO
public static final Prefix MEGA
public static final Prefix GIGA
public static final Prefix TERA
public static final Prefix PETA
public static final Prefix EXA
public static final Prefix ZETTA
public static final Prefix YOTTA
public static final boolean ALLOWED
public static final boolean NOT_ALLOWED
public static Prefix[] values()
for (Prefix c : Prefix.values()) System.out.println(c);
public static Prefix 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 static Prefix keySelect(java.lang.String aKey)
aKey
- the String specifying the desired Prefixpublic double value()
public java.lang.String toString()
toString
in class java.lang.Enum<Prefix>
public java.lang.String symbol()