public class TimeZoneMoshiAdapter extends com.squareup.moshi.JsonAdapter<TimeZone>
| Modifier and Type | Field and Description |
|---|---|
static com.squareup.moshi.JsonAdapter.Factory |
FACTORY
创建工厂
|
static TimeZoneMoshiAdapter |
INSTANCE
单例
|
| Constructor and Description |
|---|
TimeZoneMoshiAdapter() |
| Modifier and Type | Method and Description |
|---|---|
TimeZone |
fromJson(com.squareup.moshi.JsonReader jsonReader) |
void |
toJson(com.squareup.moshi.JsonWriter jsonWriter,
TimeZone timeZone) |
public static final com.squareup.moshi.JsonAdapter.Factory FACTORY
public static final TimeZoneMoshiAdapter INSTANCE
public void toJson(com.squareup.moshi.JsonWriter jsonWriter,
TimeZone timeZone)
throws IOException
toJson in class com.squareup.moshi.JsonAdapter<TimeZone>IOExceptionpublic TimeZone fromJson(com.squareup.moshi.JsonReader jsonReader) throws IOException
fromJson in class com.squareup.moshi.JsonAdapter<TimeZone>IOExceptionCopyright © 2025. All rights reserved.