public static enum HistoricalDataLoadListener.Status extends java.lang.Enum<HistoricalDataLoadListener.Status> implements UsesCustomNull
BleDevice.loadHistoricalData()
(or overloads).Enum Constant and Description |
---|
ALREADY_LOADED
BleDevice.loadHistoricalData() (or overloads) was called but the data was already loaded to memory. |
ALREADY_LOADING
Same idea as
STARTED_LOADING , not an error status, but letting you know that the load was already in progress
when BleDevice.loadHistoricalData() (or overloads) was called a second time. |
LOADED
Historical data is fully loaded to memory and ready to access synchronously (without blocking current thread)
through
BleDevice.getHistoricalData_iterator(UUID) (or overloads). |
NOTHING_TO_LOAD
BleDevice.loadHistoricalData() (or overloads) was called but there was no data available to load to memory. |
NULL
Fulfills soft contract of
UsesCustomNull . |
STARTED_LOADING
BleDevice.loadHistoricalData() (or overloads) was called and the operation was successfully started -
expect another HistoricalDataLoadListener.HistoricalDataLoadEvent with HistoricalDataLoadListener.HistoricalDataLoadEvent.status() being LOADED shortly. |
Modifier and Type | Method and Description |
---|---|
boolean |
isNull()
Returns true if
this== NULL . |
static HistoricalDataLoadListener.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HistoricalDataLoadListener.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HistoricalDataLoadListener.Status NULL
UsesCustomNull
.public static final HistoricalDataLoadListener.Status LOADED
BleDevice.getHistoricalData_iterator(UUID)
(or overloads).public static final HistoricalDataLoadListener.Status ALREADY_LOADED
BleDevice.loadHistoricalData()
(or overloads) was called but the data was already loaded to memory.public static final HistoricalDataLoadListener.Status NOTHING_TO_LOAD
BleDevice.loadHistoricalData()
(or overloads) was called but there was no data available to load to memory.public static final HistoricalDataLoadListener.Status STARTED_LOADING
BleDevice.loadHistoricalData()
(or overloads) was called and the operation was successfully started -
expect another HistoricalDataLoadListener.HistoricalDataLoadEvent
with HistoricalDataLoadListener.HistoricalDataLoadEvent.status()
being LOADED
shortly.public static final HistoricalDataLoadListener.Status ALREADY_LOADING
STARTED_LOADING
, not an error status, but letting you know that the load was already in progress
when BleDevice.loadHistoricalData()
(or overloads) was called a second time. This doesn't
affect the actual loading process at all, and LOADED
will eventually be returned for both callbacks.public static HistoricalDataLoadListener.Status[] values()
for (HistoricalDataLoadListener.Status c : HistoricalDataLoadListener.Status.values()) System.out.println(c);
public static HistoricalDataLoadListener.Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isNull()
this==
NULL
.isNull
in interface UsesCustomNull