DataTypeAvailability


public final class DataTypeAvailability implements Availability


Availability of a DataType.

Summary

Public fields

static final @NonNull DataTypeAvailability

The DataType is currently acquiring.

static final @NonNull DataTypeAvailability

The DataType is fully initialized and available.

static final @NonNull DataTypeAvailability

The DataType is unavailable because health services cannot acquire it.

static final @NonNull DataTypeAvailability

The DataType is not available because the device is currently off-body.

static final @NonNull DataTypeAvailability

The availability is unknown, or is represented by a value too new for this library version to parse.

Public methods

boolean
equals(Object other)
static final DataTypeAvailability
fromId(int id)
int
final @NonNull String
int
@NonNull String

Public fields

ACQUIRING

public static final @NonNull DataTypeAvailability ACQUIRING

The DataType is currently acquiring.

AVAILABLE

public static final @NonNull DataTypeAvailability AVAILABLE

The DataType is fully initialized and available.

UNAVAILABLE

public static final @NonNull DataTypeAvailability UNAVAILABLE

The DataType is unavailable because health services cannot acquire it.

UNAVAILABLE_DEVICE_OFF_BODY

public static final @NonNull DataTypeAvailability UNAVAILABLE_DEVICE_OFF_BODY

The DataType is not available because the device is currently off-body.

UNKNOWN

public static final @NonNull DataTypeAvailability UNKNOWN

The availability is unknown, or is represented by a value too new for this library version to parse.

Public methods

equals

public boolean equals(Object other)

fromId

Added in 1.0.0
public static final DataTypeAvailability fromId(int id)

getId

Added in 1.1.0-alpha04
public int getId()

getName

Added in 1.0.0
public final @NonNull String getName()

hashCode

public int hashCode()

toString

public @NonNull String toString()