Page Summary
-
AnnotatedData is a class that returns data with an annotation, currently only indicating if the data is stale.
-
The
get()method returns the annotated data. -
The
isStale()method returnstrueif the data returned byget()is stale, often indicating a network error and cached data.
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.