compareTo

open operator override fun compareTo(other: AuxiliaryPower): Int

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

Return

Returns zero if this object represents the same quantity as the other object, a negative number if it's less than other, or a positive number if it's greater than other.

Parameters

other

Another AuxiliaryPower object of the same consumption type.

Throws

if the aux power types do not match.