private static final class ProxyQuantityFactory.GenericHandler<Q extends javax.measure.Quantity<Q>>
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
Number
. This is a fall back used when no specialized handler is
available for the number type.Modifier and Type | Field and Description |
---|---|
(package private) javax.measure.Unit<Q> |
unit |
(package private) java.lang.Number |
value |
Constructor and Description |
---|
GenericHandler(java.lang.Number value,
javax.measure.Unit<Q> unit) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
GenericHandler(java.lang.Number value, javax.measure.Unit<Q> unit)