|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectucar.units.UnitSystemImpl
public class UnitSystemImpl
| Constructor Summary | |
|---|---|
protected |
UnitSystemImpl(UnitDBImpl baseUnitDB,
UnitDBImpl derivedUnitDB)
Constructs from a base unit database and a derived unit database. |
| Method Summary | |
|---|---|
BaseUnit |
getBaseUnit(BaseQuantity quantity)
Returns the base unit corresponding to a base quantity. |
UnitDB |
getBaseUnitDB()
Returns the base unit database. |
UnitDB |
getUnitDB()
Returns the complete unit database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected UnitSystemImpl(UnitDBImpl baseUnitDB,
UnitDBImpl derivedUnitDB)
throws UnitExistsException
baseUnitDB - The base unit database. Shall only contain base units.derivedUnitDB - The derived unit database. Shall not contain any base units.
UnitExistsException - A unit with the same identifier exists in both databases.| Method Detail |
|---|
public final UnitDB getBaseUnitDB()
getBaseUnitDB in interface UnitSystempublic final UnitDB getUnitDB()
getUnitDB in interface UnitSystempublic final BaseUnit getBaseUnit(BaseQuantity quantity)
getBaseUnit in interface UnitSystemquantity - The base quantity.
null if no such unit exists.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||