of

open override fun of(magnitude: Double): Energy(source)

Creates a new immutable measurement of the given magnitude in terms of this unit. Implementations are strongly recommended to sharpen the return type to a unit-specific measurement implementation.

Return

the measurement object

Parameters

magnitude

the magnitude of the measurement.