Class AbstractNode


  • public abstract class AbstractNode
    extends java.lang.Object
    abstract class for nodeobjects which only contains a simple equals method and the id
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int id  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getId()  
      void setId​(int id)
      Method to set the id, if it was not set in the construction
      • Methods inherited from class java.lang.Object

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

      • id

        protected int id
    • Constructor Detail

      • AbstractNode

        public AbstractNode()
      • AbstractNode

        public AbstractNode​(int id)
    • Method Detail

      • setId

        public void setId​(int id)
        Method to set the id, if it was not set in the construction
        Parameters:
        id - The id the node should get.
      • getId

        public int getId()
        Returns:
        the id