Class AbstractNode

    • Field Detail

      • nodeid

        protected int nodeid
        The node id.
      • clones

        protected static final java.lang.ThreadLocal clones
        The thread local.
    • Constructor Detail

      • AbstractNode

        public AbstractNode​(int nodeid)
        Create a new node.
    • Method Detail

      • getNodeId

        public int getNodeId()
        Get the nodeid.
        Specified by:
        getNodeId in interface INode
        Returns:
        The nodeid.
      • hashCode

        public int hashCode()
        Get the hashcode.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hash code.
      • equals

        public boolean equals​(java.lang.Object obj)
        Test for equality.
        Overrides:
        equals in class java.lang.Object
        Returns:
        True, if equal.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation.
      • toString

        protected java.lang.String toString​(java.lang.String insert)
        Customizable string representation. The given string will be inserted.
      • clone

        public java.lang.Object clone()
        Clone this object.
        Specified by:
        clone in interface INode
        Overrides:
        clone in class java.lang.Object
        Returns:
        A clone of this object.
      • doClone

        protected abstract void doClone​(java.lang.Object theclone)
        Do clone makes a deep clone without regarding cycles. Method is overridden by subclasses to actually incorporate their attributes.
        Parameters:
        theclone - The clone.