make

open fun make(constructor: UnitBuilder.UnitConstructorFunction<U>): U

Creates the new unit based off of the builder methods called prior, passing them to a provided constructor function.

Return

the new derived unit

Parameters

constructor

the function to use to create the new derived unit

Throws

if the unit conversions, unit name, or unit symbol were not set


open fun make(): U

Creates the new unit based off of the builder methods called prior.

Return

the new derived unit

Throws

if the unit conversions, unit name, or unit symbol were not set

if the base unit does not define a constructor accepting the conversion functions, unit name, and unit symbol - in that order