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

public Interface PrefixOperator<Q extends Quantity<Q>>

Annotations
@FunctionalInterface
Type Parameters
<Q>
the quantity type
Imports
javax.measure.Prefix, .Quantity, .Unit

Represents a function that parses an input value and produces an output.

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

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

Method Summary

Modifier and TypeMethod and Description
public Unit<Q>

Returns:

the unit with the given prefix applied.
prefix
(Prefix
the prefix to apply on this unit.
prefix
)

Returns a new unit equal to this unit prefixed by the specified prefix.

Method Detail

prefixback to summary
public Unit<Q> prefix(Prefix prefix)

Returns a new unit equal to this unit prefixed by the specified prefix.

Parameters
prefix:Prefix

the prefix to apply on this unit.

Returns:Unit<Q>

the unit with the given prefix applied.