Package org.ldk.enums
Enum SiPrefix
- java.lang.Object
-
- java.lang.Enum<SiPrefix>
-
- org.ldk.enums.SiPrefix
-
- All Implemented Interfaces:
Serializable
,Comparable<SiPrefix>
public enum SiPrefix extends Enum<SiPrefix>
SI prefixes for the human readable part
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LDKSiPrefix_Micro
10^-6LDKSiPrefix_Milli
10^-3LDKSiPrefix_Nano
10^-9LDKSiPrefix_Pico
10^-12
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Enum Constant Detail
-
LDKSiPrefix_Milli
public static final SiPrefix LDKSiPrefix_Milli
10^-3
-
LDKSiPrefix_Micro
public static final SiPrefix LDKSiPrefix_Micro
10^-6
-
LDKSiPrefix_Nano
public static final SiPrefix LDKSiPrefix_Nano
10^-9
-
LDKSiPrefix_Pico
public static final SiPrefix LDKSiPrefix_Pico
10^-12
-
-
Method Detail
-
values
public static SiPrefix[] 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 (SiPrefix c : SiPrefix.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SiPrefix valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-