- All Implemented Interfaces:
Serializable
,Comparable<SIUnit>
,Constable
,CoreUnitInterface
,UnitInterface
public enum SIUnit extends Enum<SIUnit> implements CoreUnitInterface
- Author:
- Dr. Peter Droste
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and Type Method Description boolean
equals(UnitInterface unit, boolean ignoreMultiplicator)
String
getName()
String
getNormalizedSISymbolExpression()
EnumMap<SIUnit,UnitFactor>
getNormalizedSIUnitFactors()
String
getSISymbolExpression()
List<UnitFactor>
getSIUnitFactors()
String
getSymbolExpression()
List<UnitFactor>
getUnitFactors()
omix.mathxp.units.PrivateMember
neverImplementThisInterface(omix.mathxp.units.PrivateMember privateMember)
String
toString()
static SIUnit
valueOf(String name)
Returns the enum constant of this type with the specified name.static SIUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getSymbolExpression
- Specified by:
getSymbolExpression
in interfaceUnitInterface
-
getSISymbolExpression
- Specified by:
getSISymbolExpression
in interfaceUnitInterface
-
getNormalizedSISymbolExpression
- Specified by:
getNormalizedSISymbolExpression
in interfaceUnitInterface
-
getName
- Specified by:
getName
in interfaceUnitInterface
-
getSIUnitFactors
- Specified by:
getSIUnitFactors
in interfaceUnitInterface
-
getNormalizedSIUnitFactors
- Specified by:
getNormalizedSIUnitFactors
in interfaceUnitInterface
-
getUnitFactors
- Specified by:
getUnitFactors
in interfaceUnitInterface
-
equals
- Specified by:
equals
in interfaceUnitInterface
-
toString
-
neverImplementThisInterface
public omix.mathxp.units.PrivateMember neverImplementThisInterface(omix.mathxp.units.PrivateMember privateMember)- Specified by:
neverImplementThisInterface
in interfaceUnitInterface
-