public final class TemperatureDelta implements Comparable


Represents a unit of TemperatureDelta difference. Supported units:

Summary

Public methods

static final @NonNull TemperatureDelta
celsius(double value)

Creates TemperatureDelta with the specified value in Celsius degrees.

int
boolean
equals(Object other)
static final @NonNull TemperatureDelta
fahrenheit(double value)

Creates TemperatureDelta with the specified value in Fahrenheit degrees.

final double

Returns the TemperatureDelta in Celsius degrees.

final double

Returns the TemperatureDelta in Fahrenheit degrees.

int
@NonNull String

Public methods

celsius

Added in 1.1.0-alpha10
public static final @NonNull TemperatureDelta celsius(double value)

Creates TemperatureDelta with the specified value in Celsius degrees.

compareTo

Added in 1.1.0-alpha10
public int compareTo(@NonNull TemperatureDelta other)

equals

public boolean equals(Object other)

fahrenheit

Added in 1.1.0-alpha10
public static final @NonNull TemperatureDelta fahrenheit(double value)

Creates TemperatureDelta with the specified value in Fahrenheit degrees.

getCelsius

Added in 1.1.0-alpha10
public final double getCelsius()

Returns the TemperatureDelta in Celsius degrees.

getFahrenheit

Added in 1.1.0-alpha10
public final double getFahrenheit()

Returns the TemperatureDelta in Fahrenheit degrees.

hashCode

public int hashCode()

toString

public @NonNull String toString()