Class Node

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Node​(NodeId id, java.lang.Object source)  
    • Constructor Detail

      • Node

        protected Node​(NodeId id,
                       java.lang.Object source)
    • Method Detail

      • getId

        public NodeId getId()
      • getSource

        public java.lang.Object getSource()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • copy

        public abstract Node copy​(NodeId id)
        Returns a copy of the node with a new ID.
        Parameters:
        id - new ID of the node
        Returns:
        copy of the node with a new ID