Class RectangleImpl
java.lang.Object
org.openspaces.spatial.shapes.impl.RectangleImpl
- All Implemented Interfaces:
Externalizable,Serializable,Rectangle,Shape,Spatial4jShapeProvider
public class RectangleImpl
extends Object
implements Rectangle, Spatial4jShapeProvider, Externalizable
- Since:
- 11.0
- Author:
- Yohana Khoury
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendTo(StringBuilder stringBuilder, ShapeFormat shapeFormat) Appends a string representation of the shape using the specified formatbooleandoublegetMaxX()The right edge of the X coordinate.doublegetMaxY()The top edge of the Y coordinate.doublegetMinX()The left edge of the X coordinate.doublegetMinY()The bottom edge of the Y coordinate.org.locationtech.spatial4j.shape.ShapegetSpatial4jShape(org.locationtech.spatial4j.context.SpatialContext spatialContext) Gets a Spatial4j shape from the current objectinthashCode()voidtoString()toString(ShapeFormat shapeFormat) Returns a string representation of the shape using the specified format.void
-
Constructor Details
-
RectangleImpl
public RectangleImpl() -
RectangleImpl
public RectangleImpl(double minX, double maxX, double minY, double maxY)
-
-
Method Details
-
getMinX
public double getMinX()Description copied from interface:RectangleThe left edge of the X coordinate. -
getMinY
public double getMinY()Description copied from interface:RectangleThe bottom edge of the Y coordinate. -
getMaxX
public double getMaxX()Description copied from interface:RectangleThe right edge of the X coordinate. -
getMaxY
public double getMaxY()Description copied from interface:RectangleThe top edge of the Y coordinate. -
toString
-
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
-
equals
-
hashCode
public int hashCode() -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-