Interface PrefixOperator<Q extends 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 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:
  • Method Summary

    Modifier and Type
    Method
    Description
    prefix(Prefix prefix)
    Returns a new unit equal to this unit prefixed by the specified prefix.
  • Method Details

    • prefix

      Unit<Q> prefix(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.