Class BoundingBox
java.lang.Object
org.springframework.data.redis.domain.geo.BoundingBox
- All Implemented Interfaces:
Serializable
,Shape
-
Constructor Summary
ConstructorsConstructorDescriptionBoundingBox
(double width, double height, Metric metric) Creates a newBoundingBox
from the given width, height andMetric
.BoundingBox
(Distance width, Distance height) Creates a newBoundingBox
from the given width and height. -
Method Summary
-
Constructor Details
-
BoundingBox
Creates a newBoundingBox
from 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 newBoundingBox
from the given width, height andMetric
.- Parameters:
width
-height
-metric
- must not be null.
-
-
Method Details
-
getWidth
-
getHeight
-
hashCode
-
equals
-
toString
-