Power
public final class Power implements Comparable
Represents a unit of power. Supported units:
-
watts - see
Power.watts,Double.watts -
kilocalories/day - see
Power.kilocaloriesPerDay,Double.kilocaloriesPerDay
Summary
Public methods |
|
|---|---|
int |
|
boolean |
|
final double |
Returns the power in kilocalories/day. |
final double |
getWatts()Returns the power in Watts. |
int |
hashCode() |
static final @NonNull Power |
kilocaloriesPerDay(double value)Creates |
@NonNull String |
toString() |
static final @NonNull Power |
watts(double value)Creates |
Public methods
getKilocaloriesPerDay
Added in 1.1.0
public final double getKilocaloriesPerDay()
Returns the power in kilocalories/day.
kilocaloriesPerDay
Added in 1.1.0
public static final @NonNull Power kilocaloriesPerDay(double value)
Creates Power with the specified value in kilocalories/day.