class Power : Comparable


Represents a unit of power. Supported units:

Summary

Public companion functions

Power

Creates Power with the specified value in kilocalories/day.

Power
watts(value: Double)

Creates Power with the specified value in Watts.

Public functions

open operator Int
compareTo(other: Power)
open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Double

Returns the power in kilocalories/day.

Double

Returns the power in Watts.

Public companion functions

kilocaloriesPerDay

Added in 1.1.0-alpha07
fun kilocaloriesPerDay(value: Double): Power

Creates Power with the specified value in kilocalories/day.

watts

Added in 1.1.0-alpha07
fun watts(value: Double): Power

Creates Power with the specified value in Watts.

Public functions

compareTo

Added in 1.1.0-alpha07
open operator fun compareTo(other: Power): Int

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

inKilocaloriesPerDay

Added in 1.1.0-alpha07
val inKilocaloriesPerDayDouble

Returns the power in kilocalories/day.

inWatts

Added in 1.1.0-alpha07
val inWattsDouble

Returns the power in Watts.