public enum SiPrefix extends Enum<SiPrefix>
Enum Constant and Description |
---|
CENTI |
DECA |
DECI |
GIGA |
HECTO |
KILO |
MEGA |
MICRO |
MILLI |
NANO |
ONE |
PICO |
Modifier and Type | Method and Description |
---|---|
static SiPrefix |
fromLabel(String label) |
int |
getExponent() |
double |
getFactor() |
String |
getLabel() |
String |
toString() |
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 PICO
public static final SiPrefix NANO
public static final SiPrefix MICRO
public static final SiPrefix MILLI
public static final SiPrefix CENTI
public static final SiPrefix DECI
public static final SiPrefix ONE
public static final SiPrefix DECA
public static final SiPrefix HECTO
public static final SiPrefix KILO
public static final SiPrefix MEGA
public static final SiPrefix GIGA
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 getLabel()
public final double getFactor()
public final int getExponent()
Copyright © 2009–2016 MBus4J. All rights reserved.