Class GraphEntityFactoryImpl<E extends GraphEntity>

    • Constructor Detail

      • GraphEntityFactoryImpl

        protected GraphEntityFactoryImpl​(IdGroupingToken groupIdToken)
        Constructor without a container. Only use when the graph entities are know to be set manually afterward by derived class
        Parameters:
        groupIdToken - to use for creating element ids
      • GraphEntityFactoryImpl

        protected GraphEntityFactoryImpl​(IdGroupingToken groupIdToken,
                                         GraphEntities<E> graphEntities)
        Constructor
        Parameters:
        groupIdToken - to use for creating element ids
        graphEntities - to register the created instances on
      • GraphEntityFactoryImpl

        protected GraphEntityFactoryImpl​(GraphEntities<E> graphEntities)
        Constructor. Do not use unless the entities do not rely on id generation but obtain their unique id from elsewhere
        Parameters:
        graphEntities - to register the created instances on
    • Method Detail

      • setGraphEntities

        protected void setGraphEntities​(GraphEntities<E> graphEntities)
        Use with caution as it replaces the managed id container in its entirety
        Parameters:
        graphEntities - to use as the managed id container
      • getGraphEntities

        protected GraphEntities<E> getGraphEntities()
        The entities to register on
        Returns:
        graphEntities