public static enum Convert.Unit extends java.lang.Enum<Convert.Unit>
Enum Constant and Description |
---|
ETHER |
FINNEY |
GETHER |
GWEI |
KETHER |
KWEI |
METHER |
MWEI |
SZABO |
WEI |
Modifier and Type | Method and Description |
---|---|
static Convert.Unit |
fromString(java.lang.String name) |
java.math.BigDecimal |
getWeiFactor() |
java.lang.String |
toString() |
static Convert.Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Convert.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Convert.Unit WEI
public static final Convert.Unit KWEI
public static final Convert.Unit MWEI
public static final Convert.Unit GWEI
public static final Convert.Unit SZABO
public static final Convert.Unit FINNEY
public static final Convert.Unit ETHER
public static final Convert.Unit KETHER
public static final Convert.Unit METHER
public static final Convert.Unit GETHER
public static Convert.Unit[] values()
for (Convert.Unit c : Convert.Unit.values()) System.out.println(c);
public static Convert.Unit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.math.BigDecimal getWeiFactor()
public java.lang.String toString()
toString
in class java.lang.Enum<Convert.Unit>
public static Convert.Unit fromString(java.lang.String name)