public abstract class BasePlanetObject extends Object implements PlanetObject
Modifier and Type | Field and Description |
---|---|
protected PlanetModel |
planetModel
This is the planet model embedded in all objects derived from this
class.
|
Constructor and Description |
---|
BasePlanetObject(PlanetModel planetModel)
Constructor creating class instance given a planet model.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
PlanetModel |
getPlanetModel()
Returns the
PlanetModel provided when this shape was created. |
int |
hashCode() |
void |
write(OutputStream outputStream)
Serialize to output stream.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
readBitSet, readBoolean, readByteArray, readClass, readDouble, readHeterogeneousArray, readHomogeneousArray, readInt, readLong, readObject, readObject, readObject, readObject, readPlanetObject, readPointArray, readPolygonArray, readString, writeBitSet, writeBoolean, writeByteArray, writeClass, writeDouble, writeHeterogeneousArray, writeHeterogeneousArray, writeHomogeneousArray, writeHomogeneousArray, writeInt, writeLong, writeObject, writePlanetObject, writePointArray, writePointArray, writePolygonArray, writePolygonArray, writeString
protected final PlanetModel planetModel
public BasePlanetObject(PlanetModel planetModel)
planetModel
- is the planet model.public PlanetModel getPlanetModel()
PlanetObject
PlanetModel
provided when this shape was created.getPlanetModel
in interface PlanetObject
public void write(OutputStream outputStream) throws IOException
SerializableObject
write
in interface SerializableObject
outputStream
- is the output stream to write to.IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.