|
||||||||||
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 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. |
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(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
.public abstract String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |