Top Description Methods
tech.uom.lib.common.function

public Interface QuantityConverter<Q extends Quantity<Q>>

Annotations
@FunctionalInterface
Type Parameters
<Q>
The type to convert to.
Imports
javax.measure.Quantity, .Unit

Represents an operation to convert quantities.

This is a functional interface whose functional method is to().

Author
Werner Keil
Since
1.0.3
Version
1.5, 2019-04-07
See Also
Wikipedia: Data Conversion

Method Summary

Modifier and TypeMethod and Description
public Quantity<Q>

Returns:

the converted result.
to
(Unit<Q>
the Unit to convert to.
unit
)

Returns a quantity converted into another unit.

Method Detail

toback to summary
public Quantity<Q> to(Unit<Q> unit)

Returns a quantity converted into another unit.

Parameters
unit:Unit<Q>

the Unit to convert to.

Returns:Quantity<Q>

the converted result.