Package jahuwaldt.js.unit
Enum UnitSet.UnitSystem
- java.lang.Object
-
- java.lang.Enum<UnitSet.UnitSystem>
-
- jahuwaldt.js.unit.UnitSet.UnitSystem
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UnitSet.UnitSystem>
- Enclosing class:
- UnitSet
public static enum UnitSet.UnitSystem extends java.lang.Enum<UnitSet.UnitSystem>
The type of unit system being used.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CGS
Constant used to indicate that the coherent metric (cm-gram-sec) units should be used.CUSTOM
Constant used to indicate that a custom set of units is being used which may or may not be coherent.SI_MKS
Constant used to indicate that the coherent SI units should be used.US_FPS
Constant used to indicate that coherent US Customary units (ft-lbm-sec) should be used.US_FSS
Constant used to indicate that coherent US Customary units (ft-slug-sec) should be used.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnitSet.UnitSystem
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UnitSet.UnitSystem[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SI_MKS
public static final UnitSet.UnitSystem SI_MKS
Constant used to indicate that the coherent SI units should be used.
-
CGS
public static final UnitSet.UnitSystem CGS
Constant used to indicate that the coherent metric (cm-gram-sec) units should be used.
-
US_FSS
public static final UnitSet.UnitSystem US_FSS
Constant used to indicate that coherent US Customary units (ft-slug-sec) should be used.
-
US_FPS
public static final UnitSet.UnitSystem US_FPS
Constant used to indicate that coherent US Customary units (ft-lbm-sec) should be used.
-
CUSTOM
public static final UnitSet.UnitSystem CUSTOM
Constant used to indicate that a custom set of units is being used which may or may not be coherent.
-
-
Method Detail
-
values
public static UnitSet.UnitSystem[] 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 (UnitSet.UnitSystem c : UnitSet.UnitSystem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnitSet.UnitSystem 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
-
-