UnitConstructorFunction

A functional interface for constructing new units without relying on reflection.

Parameters

<U>

the type of the unit

Functions

Link copied to clipboard
abstract fun create(baseUnit: U, @NonNull toBaseUnits: UnaryFunction, @NonNull fromBaseUnits: UnaryFunction, @NonNull name: String, @NonNull symbol: String): U
Creates a new unit instance based on its relation to the base unit of measure.