Page Summary
-
AnnotatedData is a class used to return data with an annotation, currently only indicating if the data is stale.
-
The
get()method returns the annotated data. -
The
isStale()method returns true if the data returned byget()is stale, which usually indicates a network error and that cached data was used.
Class to return annotated data. Currently, the only annotation is whether the data is stale or not.
Public Method Summary
| T |
get()
Returns the data that is annotated by this class.
|
| boolean |
Inherited Method Summary
Public Methods
public T get ()
Returns the data that is annotated by this class.
public boolean isStale ()
Returns true if the data returned by get()
is stale. This usually indicates that there was a network error and data was returned
from the local cache.