|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Prefixes>
it.jnrpe.utils.thresholds.Prefixes
public enum Prefixes
Enum Constant Summary | |
---|---|
atto
Atto : 10^-18. |
|
centi
Centi : 10^-2. |
|
deci
Deci : 10^-1. |
|
deka
Deka : 10^1. |
|
exa
Exa : 10^28. |
|
exbi
Exbi: 2^60. |
|
femto
Femto : 10^-15. |
|
gibi
Gibi: 2^30. |
|
giga
Giga : 10^9. |
|
hecto
Hecto : 10^2. |
|
kibi
Kibi: 2^10. |
|
kilo
Kilo : 10^3. |
|
mebi
Mebi: 2^20. |
|
mega
Mega : 10^6. |
|
micro
Micro : 10^-6. |
|
milli
Milli : 10^-3. |
|
nano
Nano : 10^-9. |
|
pebi
Pebi: 2^50. |
|
peta
Peta : 10^15. |
|
pico
Pico : 10^-12. |
|
tebi
Tebi: 2^40. |
|
tera
Tera : 10^12. |
|
yocto
Yocto : 10^-24. |
|
yotta
Yotta : 10^24. |
|
zepto
Zepto : 10^-21. |
|
zetta
Zetta : 10^21. |
Method Summary | |
---|---|
BigDecimal |
convert(BigDecimal value)
Multiplies the value with the multiplier associated with this prefix. |
BigDecimal |
convert(double value)
Multiplies the value with the multiplier associated with this prefix. |
BigDecimal |
convert(int value)
Multiplies the value with the multiplier associated with this prefix. |
BigDecimal |
convert(long value)
Multiplies the value with the multiplier associated with this prefix. |
static Prefixes |
fromChar(char prefixChar)
Creates the enumeration from its prefix string. |
static Prefixes |
fromString(String prefixString)
Returns the enumeration relative to the passed in prefix or string. |
static Prefixes |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Prefixes[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Prefixes yotta
public static final Prefixes zetta
public static final Prefixes exa
public static final Prefixes peta
public static final Prefixes tera
public static final Prefixes giga
public static final Prefixes mega
public static final Prefixes kilo
public static final Prefixes hecto
public static final Prefixes deka
public static final Prefixes deci
public static final Prefixes centi
public static final Prefixes milli
public static final Prefixes micro
public static final Prefixes nano
public static final Prefixes pico
public static final Prefixes femto
public static final Prefixes atto
public static final Prefixes zepto
public static final Prefixes yocto
public static final Prefixes kibi
public static final Prefixes mebi
public static final Prefixes gibi
public static final Prefixes tebi
public static final Prefixes pebi
public static final Prefixes exbi
Method Detail |
---|
public static Prefixes[] values()
for (Prefixes c : Prefixes.values()) System.out.println(c);
public static Prefixes valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic BigDecimal convert(BigDecimal value)
value
- The value
public BigDecimal convert(int value)
value
- The value
public BigDecimal convert(long value)
value
- The value
public BigDecimal convert(double value)
value
- The value
public static Prefixes fromChar(char prefixChar)
prefixChar
- The prefix
public static Prefixes fromString(String prefixString)
prefixString
- The prefix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |