- All Implemented Interfaces:
IValueObject
,Serializable
,Comparable<SIBaseUnits>
,Constable
SI base units.
- See Also:
-
- International System of Units Not DSGVO relevant.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet unit symbol.static SIBaseUnits
SIBaseUnits factory.Returns the value of this SIBaseUnits as a string.static SIBaseUnits
Returns the enum constant of this class with the specified name.static SIBaseUnits[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SECOND
Time in seconds. -
METRE
Length in metre. -
KILOGRAM
Mass in kilogram. -
AMPERE
Wlectric current in ampere. -
KELVIN
thermodynamic temperature in kelvin. -
MOLE
Amount of substance in mole. -
CANDELA
Luminous intensity in candela.
-
-
Field Details
-
symbol
Unit symbol.
-
-
Constructor Details
-
SIBaseUnits
Ordinal constructor.- Parameters:
symbol
- Unit symbol
-
-
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
-
of
SIBaseUnits factory.- Parameters:
value
- Enum name string- Returns:
- SIBaseUnits enum
-
getSymbol
Get unit symbol.- Returns:
- Symbol
-
stringValue
Returns the value of this SIBaseUnits as a string.- Specified by:
stringValue
in interfaceIValueObject
- Returns:
- The text value represented by this object after conversion to type string.
-