|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.units.UnitID
ucar.units.UnitSymbol
public final class UnitSymbol
Provides support for symbols for units.
Constructor Summary | |
---|---|
UnitSymbol(String symbol)
Constructs from a symbol. |
Method Summary | |
---|---|
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. |
Methods inherited from class ucar.units.UnitID |
---|
newUnitID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnitSymbol(String symbol) throws NameException
symbol
- The symbol for the unit. Shall not be
null
.
NameException
Method Detail |
---|
public String getName()
null
.
getName
in class UnitID
null
.public String getPlural()
null
.
getPlural
in class UnitID
null
.public String getSymbol()
getSymbol
in class UnitID
null
.public String toString()
toString
in class UnitID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |