| AndBase开发框架 1.6

- 首页
- 相关页面
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

全部 类 命名空间 文件 函数 变量 枚举值 页
Public 成员函数 | 静态 Public 属性 | Private 属性 | 所有成员列表
com.google.gson.internal.bind.TimeTypeAdapter类 参考
类 com.google.gson.internal.bind.TimeTypeAdapter 继承关系图:

## Public 成员函数
synchronized Time | read (JsonReader in) throws IOException
synchronized void | write (JsonWriter out, Time value) throws IOException

## 静态 Public 属性
static final TypeAdapterFactory | FACTORY

## Private 属性
final DateFormat | format = new SimpleDateFormat("hh:mm:ss a")

## 详细描述

Adapter for Time. 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.

## 成员函数说明

synchronized Time com.google.gson.internal.bind.TimeTypeAdapter.read | ( | JsonReader | in | ) | throws IOException
| inline

synchronized void com.google.gson.internal.bind.TimeTypeAdapter.write | ( | JsonWriter | out,
|  | Time | value
| ) |  | throws IOException
| inline

## 类成员变量说明

final TypeAdapterFactory com.google.gson.internal.bind.TimeTypeAdapter.FACTORY
| static

初始值:
= new TypeAdapterFactory() {
@SuppressWarnings("unchecked")
public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) {
return typeToken.getRawType() == Time.class ? (TypeAdapter<T>) new TimeTypeAdapter() : null;
}
}

final DateFormat com.google.gson.internal.bind.TimeTypeAdapter.format = new SimpleDateFormat("hh:mm:ss a")
| private

该类的文档由以下文件生成:

- src/com/google/gson/internal/bind/TimeTypeAdapter.java