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.
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:
-
Method Summary
-
Method Details
-
to
Returns a quantity converted into another unit.- Parameters:
unit
- theUnit
to convert to.- Returns:
- the converted result.
-