Class KeyedObjectFactory


  • public class KeyedObjectFactory
    extends java.lang.Object
    The KeyedObjectFactory class is responsible for ensuring that no two vertices or edges have the same keys. One and only one instance of the KeyedObjectFactory may exist. In addition to ensuring that all vertices and edges contained within any graph have distinct keys, KeyedObjectFactory provides methods for obtaining the Object that a KeyedObject refers to. More than one vertex may refer to the same object. The object a Vertex refers to can not be changed. There is no method to return the vertex referring to a specific object since in theory there can be a one-to-many correspondence.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static KeyedObjectFactory instance_
      The singleton instance of KeyedObjectFactory.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static KeyedObjectFactory getInstance()
      Returns singleton instance of KeyedObjectFactory.
      • Methods inherited from class java.lang.Object

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

      • instance_

        public static KeyedObjectFactory instance_
        The singleton instance of KeyedObjectFactory.
    • Method Detail

      • getInstance

        public static KeyedObjectFactory getInstance()
        Returns singleton instance of KeyedObjectFactory.