java.lang.Object
com.google.gson.graph.GraphAdapterBuilder.Graph
- Enclosing class:
- GraphAdapterBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Object,
GraphAdapterBuilder.Element<?>> The graph elements.private GraphAdapterBuilder.Element<Object>
The instance currently being deserialized.private final Queue<GraphAdapterBuilder.Element<?>>
The queue of elements to write during serialization. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
map
The graph elements. On serialization keys are objects (using an identity hash map) and on deserialization keys are the string names (using a standard hash map). -
queue
The queue of elements to write during serialization. Unused during deserialization. -
nextCreate
The instance currently being deserialized. Used as a backdoor between the graph traversal (which needs to know instances) and instance creators which create them.
-
-
Constructor Details
-
Graph
-
-
Method Details
-
nextName
Returns a unique name for an element to be inserted into the graph.
-