Enum Prefix
- java.lang.Object
-
- java.lang.Enum<Prefix>
-
- org.checkerframework.checker.units.qual.Prefix
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Prefix>
public enum Prefix extends java.lang.Enum<Prefix>
SI prefixes.From http://en.wikipedia.org/wiki/SI_prefix:
yotta Y 1000^8 10^24 1000000000000000000000000 Septillion Quadrillion 1991 zetta Z 1000^7 10^21 1000000000000000000000 Sextillion Trilliard 1991 exa E 1000^6 10^18 1000000000000000000 Quintillion Trillion 1975 peta P 1000^5 10^15 1000000000000000 Quadrillion Billiard 1975 tera T 1000^4 10^12 1000000000000 Trillion Billion 1960 giga G 1000^3 10^9 1000000000 Billion Milliard 1960 mega M 1000^2 10^6 1000000 Million 1960 kilo k 1000^1 10^3 1000 Thousand 1795 hecto h 1000^2/3 10^2 100 Hundred 1795 deca da 1000^1/3 10^1 10 Ten 1795 1000^0 10^0 1 One deci d 1000^-1/3 10^-1 0.1 Tenth 1795 centi c 1000^-2/3 10^-2 0.01 Hundredth 1795 milli m 1000^-1 10^-3 0.001 Thousandth 1795 micro my 1000^-2 10^-6 0.000001 Millionth 1960 nano n 1000^-3 10^-9 0.000000001 Billionth Milliardth 1960 pico p 1000^-4 10^-12 0.000000000001 Trillionth Billionth 1960 femto f 1000^-5 10^-15 0.000000000000001 Quadrillionth Billiardth 1964 atto a 1000^-6 10^-18 0.000000000000000001 Quintillionth Trillionth 1964 zepto z 1000^-7 10^-21 0.000000000000000000001 Sextillionth Trilliardth 1991 yocto y 1000^-8 10^-24 0.000000000000000000000001 Septillionth Quadrillionth 1991
- See the Checker Framework Manual:
- Units Checker
-
-
Enum Constant Summary
Enum Constants Enum Constant Description atto
SI prefix for 10^-18.centi
SI prefix for 10^-2.deca
SI prefix for 10^1.deci
SI prefix for 10^-1.exa
SI prefix for 10^18.femto
SI prefix for 10^-15.giga
SI prefix for 10^9.hecto
SI prefix for 10^2.kilo
SI prefix for 10^3.mega
SI prefix for 10^6.micro
SI prefix for 10^-6.milli
SI prefix for 10^-3.nano
SI prefix for 10^-9.one
SI prefix for 10^0, or 1.peta
SI prefix for 10^15.pico
SI prefix for 10^-12.tera
SI prefix for 10^12.yocto
SI prefix for 10^-24.yotta
SI prefix for 10^24.zepto
SI prefix for 10^-21.zetta
SI prefix for 10^21.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Enum Constant Detail
-
yotta
public static final Prefix yotta
SI prefix for 10^24.
-
zetta
public static final Prefix zetta
SI prefix for 10^21.
-
exa
public static final Prefix exa
SI prefix for 10^18.
-
peta
public static final Prefix peta
SI prefix for 10^15.
-
tera
public static final Prefix tera
SI prefix for 10^12.
-
giga
public static final Prefix giga
SI prefix for 10^9.
-
mega
public static final Prefix mega
SI prefix for 10^6.
-
kilo
public static final Prefix kilo
SI prefix for 10^3.
-
hecto
public static final Prefix hecto
SI prefix for 10^2.
-
deca
public static final Prefix deca
SI prefix for 10^1.
-
one
public static final Prefix one
SI prefix for 10^0, or 1.
-
deci
public static final Prefix deci
SI prefix for 10^-1.
-
centi
public static final Prefix centi
SI prefix for 10^-2.
-
milli
public static final Prefix milli
SI prefix for 10^-3.
-
micro
public static final Prefix micro
SI prefix for 10^-6.
-
nano
public static final Prefix nano
SI prefix for 10^-9.
-
pico
public static final Prefix pico
SI prefix for 10^-12.
-
femto
public static final Prefix femto
SI prefix for 10^-15.
-
atto
public static final Prefix atto
SI prefix for 10^-18.
-
zepto
public static final Prefix zepto
SI prefix for 10^-21.
-
yocto
public static final Prefix yocto
SI prefix for 10^-24.
-
-
Method Detail
-
values
public static Prefix[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Prefix c : Prefix.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Prefix valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-