public enum IotaUnits extends Enum<IotaUnits>
Enum Constant and Description |
---|
GIGA_IOTA |
IOTA |
KILO_IOTA |
MEGA_IOTA |
PETA_IOTA |
TERA_IOTA |
Modifier and Type | Method and Description |
---|---|
String |
getUnit()
Gets the unit.
|
long |
getValue()
Gets the value.
|
static IotaUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IotaUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IotaUnits IOTA
public static final IotaUnits KILO_IOTA
public static final IotaUnits MEGA_IOTA
public static final IotaUnits GIGA_IOTA
public static final IotaUnits TERA_IOTA
public static final IotaUnits PETA_IOTA
public static IotaUnits[] values()
for (IotaUnits c : IotaUnits.values()) System.out.println(c);
public static IotaUnits 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 getUnit()
public long getValue()
Copyright © 2018. All rights reserved.