public enum FieldUnit extends Enum<FieldUnit>
Enum Constant and Description |
---|
GAUSS
gauss (G)
|
KILOGAUSS
kilogauss (kG)
|
MILLITESLA
millitesla (mT)
|
TESLA
tesla (T)
|
Modifier and Type | Method and Description |
---|---|
double |
getFactorForTesla() |
static FieldUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldUnit TESLA
public static final FieldUnit MILLITESLA
public static final FieldUnit GAUSS
public static final FieldUnit KILOGAUSS
public static FieldUnit[] values()
for (FieldUnit c : FieldUnit.values()) System.out.println(c);
public static FieldUnit 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 double getFactorForTesla()
Copyright © 2022. All rights reserved.