create
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.
Return
a new unit
Parameters
base Unit
the base unit of the unit system
to Base Units
a function that converts values of the new unit to equivalent values in terms of the base unit
from Base Units
a function that converts values in the base unit to equivalent values in terms of the new unit
name
the name of the new unit
symbol
the shorthand symbol of the new unit