Class PointImpl
java.lang.Object
org.openspaces.spatial.shapes.impl.PointImpl
- All Implemented Interfaces:
Externalizable,Serializable,Point,Shape,Spatial4jShapeProvider
- Since:
- 11.0
- Author:
- Barak Bar Orion
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendTo(StringBuilder stringBuilder, ShapeFormat shapeFormat) Appends a string representation of the shape using the specified formatbooleanorg.locationtech.spatial4j.shape.ShapegetSpatial4jShape(org.locationtech.spatial4j.context.SpatialContext spatialContext) Gets a Spatial4j shape from the current objectdoublegetX()The X coordinate, or Longitude in geospatial context.doublegetY()The Y coordinate, or Latitude in geospatial context.inthashCode()voidtoString()toString(ShapeFormat shapeFormat) Returns a string representation of the shape using the specified format.void
-
Constructor Details
-
PointImpl
public PointImpl() -
PointImpl
public PointImpl(double x, double y)
-
-
Method Details
-
getX
public double getX()Description copied from interface:PointThe X coordinate, or Longitude in geospatial context. -
getY
public double getY()Description copied from interface:PointThe Y coordinate, or Latitude in geospatial context. -
toString
Description copied from interface:ShapeReturns a string representation of the shape using the specified format. -
appendTo
Description copied from interface:ShapeAppends a string representation of the shape using the specified format -
getSpatial4jShape
public org.locationtech.spatial4j.shape.Shape getSpatial4jShape(org.locationtech.spatial4j.context.SpatialContext spatialContext) Description copied from interface:Spatial4jShapeProviderGets a Spatial4j shape from the current object- Specified by:
getSpatial4jShapein interfaceSpatial4jShapeProvider- Parameters:
spatialContext- The SpatialContext which will be used to construct the shape, if needed.- Returns:
- A Spatial4j shape
-
toString
-
equals
-
hashCode
public int hashCode() -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-