Class BasePlanetObject

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected PlanetModel planetModel
      This is the planet model embedded in all objects derived from this class.
    • Constructor Summary

      Constructors 
      Constructor Description
      BasePlanetObject​(PlanetModel planetModel)
      Constructor creating class instance given a planet model.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      PlanetModel getPlanetModel()
      Returns the PlanetModel provided when this shape was created.
      int hashCode()  
      void write​(java.io.OutputStream outputStream)
      Serialize to output stream.
      • Methods inherited from class java.lang.Object

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

      • planetModel

        protected final PlanetModel planetModel
        This is the planet model embedded in all objects derived from this class.
    • Constructor Detail

      • BasePlanetObject

        public BasePlanetObject​(PlanetModel planetModel)
        Constructor creating class instance given a planet model.
        Parameters:
        planetModel - is the planet model.
    • Method Detail

      • write

        public void write​(java.io.OutputStream outputStream)
                   throws java.io.IOException
        Description copied from interface: SerializableObject
        Serialize to output stream.
        Specified by:
        write in interface SerializableObject
        Parameters:
        outputStream - is the output stream to write to.
        Throws:
        java.io.IOException
      • hashCode

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object