Class Node

    • Field Detail

      • ignoreSourceInComparisons

        static boolean ignoreSourceInComparisons
        When set to true, the source object is ignored in equals(java.lang.Object) and hashCode(). Only used in tests.
      • source

        private final 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