|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.monitorenter.util.units.UnitFactory
public final class UnitFactory
Singleton that caches instances of whole unit- systems and provides you with the matching unit for a maximum value.
IUnitSystem| Field Summary | |
|---|---|
static AUnit |
UNCHANGED
Marker unit that represents a "non-unit" that does not modify anything in AUnit.getValue(double). |
| Method Summary | |
|---|---|
static UnitFactory |
getInstance()
Singleton retrieval method. |
AUnit |
getUnit(double absoluteMax,
IUnitSystem units)
Returns the unit for the given argument absolute max. |
java.util.List<AUnit> |
getUnits(IUnitSystem unitsystem)
Returns a list of all different AUnit instances available in the
given unit system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final AUnit UNCHANGED
AUnit.getValue(double).
| Method Detail |
|---|
public static UnitFactory getInstance()
public AUnit getUnit(double absoluteMax,
IUnitSystem units)
The unit is chosen in a way that
absoluteMax - the absolute maximum value that has to be put into relation to
the unit to retrieve.units - the UnitSystem to use.
public java.util.List<AUnit> getUnits(IUnitSystem unitsystem)
AUnit instances available in the
given unit system.
unitsystem - the unit system of interest.
AUnit instances available in the
given unit system.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||