joules

fun joules(value: Int): Energy
fun joules(value: Long): Energy
fun joules(value: Double): Energy

Creates an Energy instance from the given value in joules.