Package org.lemsml.jlems.api
Enum BaseDimension
- java.lang.Object
-
- java.lang.Enum<BaseDimension>
-
- org.lemsml.jlems.api.BaseDimension
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BaseDimension>
public enum BaseDimension extends java.lang.Enum<BaseDimension>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMOUNT
CURRENT
LENGTH
LUMINOUS_INTENSITY
MASS
TEMPERATURE
TIME
-
Constructor Summary
Constructors Modifier Constructor Description private
BaseDimension()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract void
apply(Dimension d, int i)
static BaseDimension
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BaseDimension[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MASS
public static final BaseDimension MASS
-
LENGTH
public static final BaseDimension LENGTH
-
TIME
public static final BaseDimension TIME
-
CURRENT
public static final BaseDimension CURRENT
-
TEMPERATURE
public static final BaseDimension TEMPERATURE
-
AMOUNT
public static final BaseDimension AMOUNT
-
LUMINOUS_INTENSITY
public static final BaseDimension LUMINOUS_INTENSITY
-
-
Method Detail
-
values
public static BaseDimension[] 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 (BaseDimension c : BaseDimension.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseDimension 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
-
apply
abstract void apply(Dimension d, int i)
-
-