Package jahuwaldt.js.unit
Enum UnitSet.SetType
- java.lang.Object
-
- java.lang.Enum<UnitSet.SetType>
-
- jahuwaldt.js.unit.UnitSet.SetType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UnitSet.SetType>
- Enclosing class:
- UnitSet
public static enum UnitSet.SetType extends java.lang.Enum<UnitSet.SetType>
The different unit set types in this collection.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCELERATION
ANGLE
ANGULAR_VELOCITY
AREA
FORCE
INERTIA
LENGTH
MASS
MASS_DENSITY
TIME
TORQUE
VELOCITY
VOLUME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnitSet.SetType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UnitSet.SetType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TIME
public static final UnitSet.SetType TIME
-
LENGTH
public static final UnitSet.SetType LENGTH
-
MASS
public static final UnitSet.SetType MASS
-
ANGLE
public static final UnitSet.SetType ANGLE
-
AREA
public static final UnitSet.SetType AREA
-
VOLUME
public static final UnitSet.SetType VOLUME
-
VELOCITY
public static final UnitSet.SetType VELOCITY
-
ACCELERATION
public static final UnitSet.SetType ACCELERATION
-
FORCE
public static final UnitSet.SetType FORCE
-
INERTIA
public static final UnitSet.SetType INERTIA
-
MASS_DENSITY
public static final UnitSet.SetType MASS_DENSITY
-
ANGULAR_VELOCITY
public static final UnitSet.SetType ANGULAR_VELOCITY
-
TORQUE
public static final UnitSet.SetType TORQUE
-
-
Method Detail
-
values
public static UnitSet.SetType[] 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.SetType c : UnitSet.SetType.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.SetType 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
-
-