Class ProxyQuantityFactory.GenericHandler<Q extends javax.measure.Quantity<Q>>

java.lang.Object
tech.units.indriya.quantity.ProxyQuantityFactory.GenericHandler<Q>
All Implemented Interfaces:
InvocationHandler
Enclosing class:
ProxyQuantityFactory<Q extends javax.measure.Quantity<Q>>

private static final class ProxyQuantityFactory.GenericHandler<Q extends javax.measure.Quantity<Q>> extends Object implements InvocationHandler
The method invocation handler for implementation backed by any kind of Number. This is a fall back used when no specialized handler is available for the number type.
  • Field Details

    • unit

      final javax.measure.Unit<Q extends javax.measure.Quantity<Q>> unit
    • value

      final Number value
  • Constructor Details

    • GenericHandler

      GenericHandler(Number value, javax.measure.Unit<Q> unit)
  • Method Details