public abstract class UnitID
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
UnitID() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getName()
Returns the name of the unit.
|
abstract java.lang.String |
getPlural()
Returns the plural form of the name of the unit.
|
abstract java.lang.String |
getSymbol()
Returns the symbol for the unit.
|
static UnitID |
newUnitID(java.lang.String name,
java.lang.String plural,
java.lang.String symbol)
Factory method for constructing an identifier from a name, plural, and
symbol.
|
abstract java.lang.String |
toString()
Returns the string representation of this identifier.
|
public static UnitID newUnitID(java.lang.String name, java.lang.String plural, java.lang.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 java.lang.String getName()
null
.public abstract java.lang.String getPlural()
null
.public abstract java.lang.String getSymbol()
null
.public abstract java.lang.String toString()
toString
in class java.lang.Object