Package org.openwms.core.units.api
Enum Class MetricDimensionUnit
- All Implemented Interfaces:
Serializable
,Comparable<MetricDimensionUnit>
,Constable
,BaseUnit<MetricDimensionUnit>
public enum MetricDimensionUnit
extends Enum<MetricDimensionUnit>
implements BaseUnit<MetricDimensionUnit>
A MetricDimensionUnit.
- Author:
- Heiko Scherrer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MetricDimensionUnit
(BigDecimal magnitude) Create a newMetricDimensionUnit
. -
Method Summary
Modifier and TypeMethodDescriptiongetAll()
Return all sub types of theBaseUnit
.Return the base unit type of theBaseUnit
.Get the magnitude of thisMetricDimensionUnit
.static MetricDimensionUnit
Returns the enum constant of this class with the specified name.static MetricDimensionUnit[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MM
Millimeters. -
CM
Centimeters. -
DM
Decimeters. -
M
Meters.
-
-
Field Details
-
magnitude
-
all
-
-
Constructor Details
-
MetricDimensionUnit
Create a newMetricDimensionUnit
.- Parameters:
magnitude
- The base unit of the MetricDimension
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getMagnitude
Get the magnitude of thisMetricDimensionUnit
.- Returns:
- the magnitude of the MetricDimension
-
getAll
Return all sub types of theBaseUnit
.- Specified by:
getAll
in interfaceBaseUnit<MetricDimensionUnit>
- Returns:
- a list of sub types
-
getBaseUnit
Return the base unit type of theBaseUnit
.- Specified by:
getBaseUnit
in interfaceBaseUnit<MetricDimensionUnit>
- Returns:
- The base unit type
-