public abstract class UnitID extends Object implements Serializable
Constructor and Description |
---|
UnitID() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getName()
Returns the name of the unit.
|
abstract String |
getPlural()
Returns the plural form of the name of the unit.
|
abstract String |
getSymbol()
Returns the symbol for the unit.
|
static UnitID |
newUnitID(String name,
String plural,
String symbol)
Factory method for constructing an identifier from a name, plural, and
symbol.
|
abstract String |
toString()
Returns the string representation of this identifier.
|
public static UnitID newUnitID(String name, String plural, String symbol)
name
- The name for the unit. May be null
.plural
- The plural form of the name. If null
and
name
is non-
null
, then regular
plural-forming rules are used on the name.symbol
- The symbol for the unit. May be null
.public abstract String getName()
null
.public abstract String getPlural()
null
.public abstract String getSymbol()
null
.Copyright © 1999–2017 UCAR/Unidata. All rights reserved.