public final class UnitSymbol extends UnitID
Constructor and Description |
---|
UnitSymbol(java.lang.String symbol)
Constructs from a symbol.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the unit.
|
java.lang.String |
getPlural()
Returns the plural form of the name of the unit.
|
java.lang.String |
getSymbol()
Returns the symbol for the unit.
|
java.lang.String |
toString()
Returns the string representation of this identifier.
|
public UnitSymbol(java.lang.String symbol) throws NameException
symbol
- The symbol for the unit. Shall not be
null
.NameException
public java.lang.String getName()
null
.public java.lang.String getPlural()
null
.public java.lang.String getSymbol()