Package tech.units.indriya.quantity
Class ProxyQuantityFactory.Default<Q extends javax.measure.Quantity<Q>>
java.lang.Object
tech.units.indriya.quantity.ProxyQuantityFactory<Q>
tech.units.indriya.quantity.ProxyQuantityFactory.Default<Q>
- Type Parameters:
Q
- The type of the quantity
- All Implemented Interfaces:
javax.measure.spi.QuantityFactory<Q>
- Enclosing class:
- ProxyQuantityFactory<Q extends javax.measure.Quantity<Q>>
private static final class ProxyQuantityFactory.Default<Q extends javax.measure.Quantity<Q>>
extends ProxyQuantityFactory<Q>
The default factory implementation. This factory uses reflection for providing a default implementation for every
AbstractMeasurement
sub-types.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final javax.measure.Unit<Q>
The metric unit for quantities created by this factory.The type of the quantities created by this factory. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class tech.units.indriya.quantity.ProxyQuantityFactory
getInstance, setInstance
-
Field Details
-
type
The type of the quantities created by this factory. -
metricUnit
The metric unit for quantities created by this factory. -
CLASS_TO_METRIC_UNIT
-
-
Constructor Details
-
Default
Creates a new factory for quantities of the given type.- Parameters:
type
- The type of the quantities created by this factory.
-
-
Method Details
-
getSystemUnit
Description copied from class:ProxyQuantityFactory
Returns the metric unit for quantities produced by this factory ornull
if unknown.- Specified by:
getSystemUnit
in interfacejavax.measure.spi.QuantityFactory<Q extends javax.measure.Quantity<Q>>
- Specified by:
getSystemUnit
in classProxyQuantityFactory<Q extends javax.measure.Quantity<Q>>
- Returns:
- the metric units for this factory quantities.
-
create
-