Interface PrefixOperator<Q extends javax.measure.Quantity<Q>>

  • Type Parameters:
    Q - the quantity type
    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 PrefixOperator<Q extends javax.measure.Quantity<Q>>
    Represents a function that parses an input value and produces an output.

    This is a functional interface whose functional method is #prefix().

    Since:
    2.0
    Version:
    0.9, 2019-01-31
    Author:
    Werner Keil
    See Also:
    Prefix, Unit
    • Method Summary

      Modifier and Type Method Description
      javax.measure.Unit<Q> prefix​(javax.measure.Prefix prefix)
      Returns a new unit equal to this unit prefixed by the specified prefix.
    • Method Detail

      • prefix

        javax.measure.Unit<Qprefix​(javax.measure.Prefix prefix)
        Returns a new unit equal to this unit prefixed by the specified prefix.
        Parameters:
        prefix - the prefix to apply on this unit.
        Returns:
        the unit with the given prefix applied.