Consumption

Represents a consumed or remaining amount of fuel or electric energy.

Inheritors

Types

Link copied to clipboard
data class Energy(val amount: Energy) : Consumption

An electric energy consumption.

Link copied to clipboard
data class Fuel(val amount: Volume) : Consumption

A fuel consumption.

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.