public final class UnitFactory
extends java.lang.Object
IUnitSystem
Modifier and Type | Field | Description |
---|---|---|
static AUnit |
UNCHANGED |
Marker unit that represents a "non-unit" that does not modify anything in
AUnit.getValue(double) . |
Modifier and Type | Method | Description |
---|---|---|
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. |
public static final AUnit UNCHANGED
AUnit.getValue(double)
.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.Copyright © 2001 - 2010 LGPL, All Rights Footloose.