Class ScalarFallback<Q extends javax.measure.Quantity<Q>>

java.lang.Object
java.lang.Number
org.apache.sis.measure.Scalar<Q>
org.apache.sis.measure.ScalarFallback<Q>
Type Parameters:
Q - the type of quantity implemented by this scalar.
All Implemented Interfaces:
Serializable, Comparable<Q>, InvocationHandler, javax.measure.Quantity<Q>

final class ScalarFallback<Q extends javax.measure.Quantity<Q>> extends Scalar<Q> implements InvocationHandler
Fallback used when no Scalar implementation is available for a given quantity type.
Since:
0.8
Version:
0.8
  • Field Details

    • type

      private final Class<Q extends javax.measure.Quantity<Q>> type
      The type implemented by proxy instances.
  • Constructor Details

    • ScalarFallback

      private ScalarFallback(double value, javax.measure.Unit<Q> unit, Class<Q> type)
      Creates a new scalar for the given value and unit of measurement. Callers should ensure that all the arguments are non-null.
  • Method Details