# AnnotatedData

public class **AnnotatedData** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
Class to return annotated data. Currently, the only annotation is whether the data is
stale or not.

### Public Method Summary

|---|---|
| T | [get](https://developers.google.com/android/reference/com/google/android/gms/games/AnnotatedData#get())() Returns the data that is annotated by this class. |
| boolean | [isStale](https://developers.google.com/android/reference/com/google/android/gms/games/AnnotatedData#isStale())() Returns `true` if the data returned by `https://developers.google.com/android/reference/com/google/android/gms/games/AnnotatedData#get()` is stale. |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public T **get** ()

Returns the data that is annotated by this class.

#### public boolean **isStale** ()

Returns `true` if the data returned by `https://developers.google.com/android/reference/com/google/android/gms/games/AnnotatedData#get()`
is stale. This usually indicates that there was a network error and data was returned
from the local cache.