public class WhitespaceDelimitedCollectionTypeAdapterFactory<C extends Collection<String>> extends Object implements com.google.gson.TypeAdapterFactory
| Constructor and Description |
|---|
WhitespaceDelimitedCollectionTypeAdapterFactory(Class<?> customizedClassType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterRead(com.google.gson.JsonElement deserialized,
C collection)
Override this to muck with
deserialized before it parsed into the
application type. |
protected boolean |
beforeWrite(C source,
com.google.gson.JsonElement toSerialize,
com.google.gson.stream.JsonWriter out)
Override this to muck with
toSerialize before it is written to
the outgoing JSON stream. |
<T> com.google.gson.TypeAdapter<T> |
create(com.google.gson.Gson gson,
com.google.gson.reflect.TypeToken<T> type) |
static com.google.gson.GsonBuilder |
REGISTER(com.google.gson.GsonBuilder builder) |
public WhitespaceDelimitedCollectionTypeAdapterFactory(Class<?> customizedClassType)
public final <T> com.google.gson.TypeAdapter<T> create(com.google.gson.Gson gson,
com.google.gson.reflect.TypeToken<T> type)
create in interface com.google.gson.TypeAdapterFactoryprotected boolean beforeWrite(C source, com.google.gson.JsonElement toSerialize, com.google.gson.stream.JsonWriter out)
toSerialize before it is written to
the outgoing JSON stream.protected void afterRead(com.google.gson.JsonElement deserialized,
C collection)
deserialized before it parsed into the
application type.collection - public static com.google.gson.GsonBuilder REGISTER(com.google.gson.GsonBuilder builder)
Copyright © 2017. All rights reserved.