Package tech.uom.lib.common.function
Interface QuantityConverter<Q extends javax.measure.Quantity<Q>>
-
- Type Parameters:
Q
- The type to convert to.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface QuantityConverter<Q extends javax.measure.Quantity<Q>>
Represents an operation to convert quantities.This is a functional interface whose functional method is
#to()
.- Since:
- 1.0.3
- Version:
- 1.5, 2019-04-07
- See Also:
- Wikipedia: Data Conversion
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.measure.Quantity<Q>
to(javax.measure.Unit<Q> unit)
Returns a quantity converted into another unit.
-