Interface QuantityConverter<Q extends 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 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
Author:
Werner Keil
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    to(Unit<Q> unit)
    Returns a quantity converted into another unit.
  • Method Details

    • to

      Quantity<Q> to(Unit<Q> unit)
      Returns a quantity converted into another unit.
      Parameters:
      unit - the Unit to convert to.
      Returns:
      the converted result.