@Status(stage=PRODUCTION, unitTests=COMPLETE) @Review(by="Kees Schotanus", at="2010-08-17", reason="After unit tests were written") public enum SiPrefix extends Enum<SiPrefix>
Enum Constant and Description |
---|
ATTO
Atto.
|
EXA
Exa.
|
FEMTO
Femto.
|
GIGA
Giga.
|
KILO
Kilo.
|
MEGA
Mega.
|
MICRO
Micro.
|
MILLI
Milli.
|
NANO
Nano.
|
ONE
One.
|
PETA
Peta.
|
PICO
Pico.
|
TERA
Tera.
|
YOCTO
Yocto.
|
YOTTA
Yotta.
|
ZEPTO
Zepto.
|
ZETTA
Zetta.
|
Modifier and Type | Method and Description |
---|---|
double |
getFactor()
Gets the factor of this SI prefix.
|
int |
getPower()
Gets the power of this SI prefix.
|
String |
getSymbol()
Gets the symbol of this SiUnit.
|
String |
toString()
Creates a String representation of this SI prefix.
|
static SiPrefix |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SiPrefix[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SiPrefix YOTTA
public static final SiPrefix ZETTA
public static final SiPrefix EXA
public static final SiPrefix PETA
public static final SiPrefix TERA
public static final SiPrefix GIGA
public static final SiPrefix MEGA
public static final SiPrefix KILO
public static final SiPrefix ONE
public static final SiPrefix MILLI
public static final SiPrefix MICRO
public static final SiPrefix NANO
public static final SiPrefix PICO
public static final SiPrefix FEMTO
public static final SiPrefix ATTO
public static final SiPrefix ZEPTO
public static final SiPrefix YOCTO
public static SiPrefix[] values()
for (SiPrefix c : SiPrefix.values()) System.out.println(c);
public static SiPrefix 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 nullpublic String getSymbol()
public int getPower()
KILO
, 3 is returned.public double getFactor()
KILO
, 1000 is returned.Copyright © 2008–2018. All rights reserved.