public final class UnitFactory extends Object
IUnitSystem
Modifier and Type | Field and Description |
---|---|
static AUnit |
UNCHANGED
Marker unit that represents a "non-unit" that does not modify anything in
AUnit.getValue(double) . |
Modifier and Type | Method and Description |
---|---|
static UnitFactory |
getInstance()
Singleton retrieval method.
|
AUnit |
getUnit(double absoluteMax,
IUnitSystem units)
Returns the unit for the given argument absolute max.
|
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 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 © 2017. All rights reserved.