|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.units.UnitID
public abstract class UnitID
Provides support for unit identifiers.
| Constructor Summary | |
|---|---|
UnitID()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UnitID()
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||