public final class Pressure implements Comparable


Represents a unit of pressure. Supported units:

Summary

Public methods

int
boolean
equals(Object other)
final double

Returns the pressure in millimeters of Mercury (mmHg).

int
static final @NonNull Pressure
millimetersOfMercury(double value)

Creates Pressure with the specified value in millimeters of Mercury (mmHg).

@NonNull String

Public methods

compareTo

Added in 1.1.0-alpha07
public int compareTo(@NonNull Pressure other)

equals

public boolean equals(Object other)

getMillimetersOfMercury

Added in 1.1.0-alpha07
public final double getMillimetersOfMercury()

Returns the pressure in millimeters of Mercury (mmHg).

hashCode

public int hashCode()

millimetersOfMercury

Added in 1.1.0-alpha07
public static final @NonNull Pressure millimetersOfMercury(double value)

Creates Pressure with the specified value in millimeters of Mercury (mmHg).

toString

public @NonNull String toString()