public enum CurrentUnit extends java.lang.Enum<CurrentUnit>
Modifier and Type | Method and Description |
---|---|
double |
convert(double value,
CurrentUnit unit) |
double |
toAmps(double value) |
double |
toMilliAmps(double value) |
static CurrentUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CurrentUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CurrentUnit AMPS
public static final CurrentUnit MILLIAMPS
public static CurrentUnit[] values()
for (CurrentUnit c : CurrentUnit.values()) System.out.println(c);
public static CurrentUnit 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 double toAmps(double value)
public double toMilliAmps(double value)
public double convert(double value, CurrentUnit unit)