public enum Prefix extends Enum<Prefix>
Enum Constant and Description |
---|
atto
10^-18
|
centi
10^-2
|
deca
10^1
|
deci
10^-1
|
exa
10^18
|
femto
10^-15
|
giga
10^9
|
hecto
10^2
|
kilo
10^3
|
mega
10^6
|
micro
10^-6
|
milli
10^-3
|
nano
10^-9
|
one
10^0, or 1
|
peta
10^15
|
pico
10^-12
|
tera
10^12
|
yocto
10^-24
|
yotta
10^24
|
zepto
10^-21
|
zetta
10^21
|
Modifier and Type | Method and Description |
---|---|
static Prefix |
valueOf(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 yotta
public static final Prefix zetta
public static final Prefix exa
public static final Prefix peta
public static final Prefix tera
public static final Prefix giga
public static final Prefix mega
public static final Prefix kilo
public static final Prefix hecto
public static final Prefix deca
public static final Prefix one
public static final Prefix deci
public static final Prefix centi
public static final Prefix milli
public static final Prefix micro
public static final Prefix nano
public static final Prefix pico
public static final Prefix femto
public static final Prefix atto
public static final Prefix zepto
public static final Prefix yocto
public static Prefix[] values()
for (Prefix c : Prefix.values()) System.out.println(c);
public static Prefix 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 null