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:
GeoBaseCompositeShape
,GeoBaseShape
All Geo3D shapes can derive from this base class, which furnishes some common code
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PlanetModel
This is the planet model embedded in all objects derived from this class. -
Constructor Summary
ConstructorDescriptionBasePlanetObject
(PlanetModel planetModel) Constructor creating class instance given a planet model. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns thePlanetModel
provided when this shape was created.int
hashCode()
void
write
(OutputStream outputStream) Serialize to output stream.
-
Field Details
-
planetModel
This is the planet model embedded in all objects derived from this class.
-
-
Constructor Details
-
BasePlanetObject
Constructor creating class instance given a planet model.- Parameters:
planetModel
- is the planet model.
-
-
Method Details
-
getPlanetModel
Description copied from interface:PlanetObject
Returns thePlanetModel
provided when this shape was created.- Specified by:
getPlanetModel
in interfacePlanetObject
-
write
Description copied from interface:SerializableObject
Serialize to output stream.- Specified by:
write
in interfaceSerializableObject
- Parameters:
outputStream
- is the output stream to write to.- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-