|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.nxg.unity.UnitDefinitionMap
public abstract class UnitDefinitionMap
Provides a mapping from unit abbreviations to unit definitions.
This is a singleton class, so clients must first obtain the
instance of the class using getInstance()
.
Method Summary | |
---|---|
static UnitDefinitionMap |
getInstance()
Obtain an instance of the unit-definition map. |
UnitDefinition |
lookupUnitDefinition(Syntax syntax,
String symbol)
Obtain unit-definition information for a symbol, as interpreted in a particular syntax. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UnitDefinitionMap getInstance()
public UnitDefinition lookupUnitDefinition(Syntax syntax, String symbol)
symbol
- a symbol for a unit, without prefix (eg 'm' for metre, not 'mm')syntax
- one of the syntaxes of Syntax
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |