Energy

data class Energy(val amount: Energy) : Consumption

An electric energy consumption.

Parameters

amount

The electric energy stored in the battery, e.g. in kilowatt hours.

Constructors

Link copied to clipboard
constructor(amount: Energy)

Properties

Link copied to clipboard

Inherited functions

Link copied to clipboard
open operator override fun compareTo(other: Consumption): Int

Compares this object with another consumption object of the same consumption type.