Package ucar.units
Class UnitSymbol
- java.lang.Object
-
- ucar.units.UnitID
-
- ucar.units.UnitSymbol
-
- All Implemented Interfaces:
Serializable
public final class UnitSymbol extends UnitID
Provides support for symbols for units.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnitSymbol(String symbol)
Constructs from a symbol.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of the unit.String
getPlural()
Returns the plural form of the name of the unit.String
getSymbol()
Returns the symbol for the unit.String
toString()
Returns the string representation of this identifier.
-
-
-
Constructor Detail
-
UnitSymbol
public UnitSymbol(String symbol) throws NameException
Constructs from a symbol.- Parameters:
symbol
- The symbol for the unit. Shall not benull
.- Throws:
NameException
-
-