
public final class GraphAdapterBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
GraphAdapterBuilder.Element<T>
An element of the graph during serialization or deserialization.
|
(package private) static class |
GraphAdapterBuilder.Factory |
(package private) static class |
GraphAdapterBuilder.Graph |
| Modifier and Type | Field and Description |
|---|---|
private com.google.gson.internal.ConstructorConstructor |
constructorConstructor |
private Map<Type,InstanceCreator<?>> |
instanceCreators |
| Constructor and Description |
|---|
GraphAdapterBuilder() |
| Modifier and Type | Method and Description |
|---|---|
GraphAdapterBuilder |
addType(Type type) |
GraphAdapterBuilder |
addType(Type type,
InstanceCreator<?> instanceCreator) |
void |
registerOn(GsonBuilder gsonBuilder) |
private final Map<Type,InstanceCreator<?>> instanceCreators
private final com.google.gson.internal.ConstructorConstructor constructorConstructor
public GraphAdapterBuilder addType(Type type)
public GraphAdapterBuilder addType(Type type, InstanceCreator<?> instanceCreator)
public void registerOn(GsonBuilder gsonBuilder)