Class BoundingBox
java.lang.Object
org.springframework.data.redis.domain.geo.BoundingBox
- All Implemented Interfaces:
Serializable,Shape
Represents a geospatial bounding box defined by width and height.
- Since:
- 2.6
- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBoundingBox(double width, double height, Metric metric) Creates a newBoundingBoxfrom the given width, height andMetric.BoundingBox(Distance width, Distance height) Creates a newBoundingBoxfrom the given width and height. -
Method Summary
-
Constructor Details
-
BoundingBox
Creates a newBoundingBoxfrom the given width and height. Both distances must use the sameMetric.- Parameters:
width- must not be null.height- must not be null.
-
BoundingBox
Creates a newBoundingBoxfrom the given width, height andMetric.- Parameters:
width-height-metric- must not be null.
-
-
Method Details
-
getWidth
Returns the width of this bounding box.- Returns:
- will never be null.
-
getHeight
Returns the height of this bounding box.- Returns:
- will never be null.
-
hashCode
public int hashCode() -
equals
-
toString
-