public final class UnitSymbol extends UnitID
Constructor and Description |
---|
UnitSymbol(String symbol)
Constructs from a symbol.
|
Modifier and Type | Method and 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.
|
public UnitSymbol(String symbol) throws NameException
symbol
- The symbol for the unit. Shall not be
null
.NameException
Copyright © 1999–2017 UCAR/Unidata. All rights reserved.