Class GraphAdapterBuilder.Graph

  • Enclosing class:
    GraphAdapterBuilder

    static class GraphAdapterBuilder.Graph
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String nextName()
      Returns a unique name for an element to be inserted into the graph.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • map

        private final java.util.Map<java.lang.Object,​GraphAdapterBuilder.Element<?>> 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

        private final java.util.Queue<GraphAdapterBuilder.Element<?>> queue
        The queue of elements to write during serialization. Unused during deserialization.
      • nextCreate

        private GraphAdapterBuilder.Element<java.lang.Object> 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.
    • Method Detail

      • nextName

        public java.lang.String nextName()
        Returns a unique name for an element to be inserted into the graph.