|
||||||||||
| 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(java.lang.String symbol)
Constructs from a symbol. |
|
| Method Summary | |
|---|---|
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. |
| 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(java.lang.String symbol)
throws NameException
symbol - The symbol for the unit. Shall not be
null.
NameException| Method Detail |
|---|
public java.lang.String getName()
null.
getName in class UnitIDnull.public java.lang.String getPlural()
null.
getPlural in class UnitIDnull.public java.lang.String getSymbol()
getSymbol in class UnitIDnull
.public java.lang.String toString()
toString in class UnitID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||