Companion

object Companion

Functions

Link copied to clipboard
fun joules(value: Double): Energy
fun joules(value: Int): Energy
fun joules(value: Long): Energy

Creates an Energy instance from the given value in joules.

Link copied to clipboard
fun kilowattHours(value: Int): Energy

Creates an Energy instance from the given value in kilowatt-hours.

Link copied to clipboard
fun wattHours(value: Double): Energy
fun wattHours(value: Int): Energy
fun wattHours(value: Long): Energy

Creates an Energy instance from the given value in watt-hours.