Public 成员函数 | |
| Date | read (JsonReader in) throws IOException |
| synchronized void | write (JsonWriter out, Date value) throws IOException |
静态 Public 属性 | |
| static final TypeAdapterFactory | FACTORY |
Private 成员函数 | |
| synchronized Date | deserializeToDate (String json) |
静态 Private 成员函数 | |
| static DateFormat | buildIso8601Format () |
Private 属性 | |
| final DateFormat | enUsFormat = DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT, Locale.US) |
| final DateFormat | localFormat = DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT) |
| final DateFormat | iso8601Format = buildIso8601Format() |
Adapter for Date. Although this class appears stateless, it is not. DateFormat captures its time zone and locale when it is created, which gives this class state. DateFormat isn't thread safe either, so this class has to synchronize its read and write methods.
|
inlinestaticprivate |
|
inlineprivate |
|
inline |
|
inline |
|
private |
|
static |
|
private |
|
private |
1.8.8