Package org.apache.lucene.spatial3d.geom
Class BasePlanetObject
- java.lang.Object
-
- org.apache.lucene.spatial3d.geom.BasePlanetObject
-
- All Implemented Interfaces:
PlanetObject,SerializableObject
- Direct Known Subclasses:
BaseXYZSolid,GeoBaseCompositeShape,GeoBaseShape
public abstract class BasePlanetObject extends java.lang.Object implements PlanetObject
All Geo3D shapes can derive from this base class, which furnishes some common code
-
-
Field Summary
Fields Modifier and Type Field Description protected PlanetModelplanetModelThis 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 booleanequals(java.lang.Object o)PlanetModelgetPlanetModel()Returns thePlanetModelprovided when this shape was created.inthashCode()voidwrite(java.io.OutputStream outputStream)Serialize to output stream.
-
-
-
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
-
getPlanetModel
public PlanetModel getPlanetModel()
Description copied from interface:PlanetObjectReturns thePlanetModelprovided when this shape was created.- Specified by:
getPlanetModelin interfacePlanetObject
-
write
public void write(java.io.OutputStream outputStream) throws java.io.IOExceptionDescription copied from interface:SerializableObjectSerialize to output stream.- Specified by:
writein interfaceSerializableObject- Parameters:
outputStream- is the output stream to write to.- Throws:
java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-