public abstract class AbstractSystemOfUnits extends Object implements javax.measure.spi.SystemOfUnits, tec.uom.lib.common.function.Nameable
An abstract base class for unit systems.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractSystemOfUnits.Helper |
| Modifier and Type | Field and Description |
|---|---|
protected static double |
E
The natural logarithm.
|
protected static Logger |
logger |
protected Map<Class<? extends javax.measure.Quantity>,javax.measure.Unit> |
quantityToUnit
Holds the mapping quantity to unit.
|
protected Set<javax.measure.Unit<?>> |
units
Holds the units.
|
| Constructor and Description |
|---|
AbstractSystemOfUnits() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getName() |
<Q extends javax.measure.Quantity<Q>> |
getUnit(Class<Q> quantityType) |
Set<javax.measure.Unit<?>> |
getUnits() |
Set<? extends javax.measure.Unit<?>> |
getUnits(javax.measure.Dimension dimension) |
protected final Map<Class<? extends javax.measure.Quantity>,javax.measure.Unit> quantityToUnit
protected static final double E
public AbstractSystemOfUnits()
public abstract String getName()
getName in interface javax.measure.spi.SystemOfUnitsgetName in interface tec.uom.lib.common.function.Nameablepublic Set<javax.measure.Unit<?>> getUnits()
getUnits in interface javax.measure.spi.SystemOfUnitspublic Set<? extends javax.measure.Unit<?>> getUnits(javax.measure.Dimension dimension)
getUnits in interface javax.measure.spi.SystemOfUnitsCopyright © 2005–2017 Units of Measurement project. All rights reserved.