Package com.klaytn.caver.utils
Enum Convert.Unit
- java.lang.Object
-
- java.lang.Enum<Convert.Unit>
-
- com.klaytn.caver.utils.Convert.Unit
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Convert.Unit>
- Enclosing class:
- Convert
public static enum Convert.Unit extends java.lang.Enum<Convert.Unit>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Convert.Unit
fromString(java.lang.String name)
java.math.BigDecimal
getpebFactor()
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.
-
-
-
Enum Constant Detail
-
PEB
public static final Convert.Unit PEB
-
KPEB
public static final Convert.Unit KPEB
-
MPEB
public static final Convert.Unit MPEB
-
GPEB
public static final Convert.Unit GPEB
-
STON
public static final Convert.Unit STON
-
uKLAY
public static final Convert.Unit uKLAY
-
mKLAY
public static final Convert.Unit mKLAY
-
KLAY
public static final Convert.Unit KLAY
-
KKLAY
public static final Convert.Unit KKLAY
-
MKLAY
public static final Convert.Unit MKLAY
-
GKLAY
public static final Convert.Unit GKLAY
-
-
Method Detail
-
values
public static Convert.Unit[] 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 (Convert.Unit c : Convert.Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Convert.Unit 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
-
getpebFactor
public java.math.BigDecimal getpebFactor()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Convert.Unit>
-
fromString
public static Convert.Unit fromString(java.lang.String name)
-
-