Package org.springframework.data.geo
Class Box
java.lang.Object
org.springframework.data.geo.Box
- All Implemented Interfaces:
Serializable
,Shape
Represents a geospatial box value
- Since:
- 1.8
- Author:
- Mark Pollack, Oliver Gierke, Thomas Darimont
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Box
Creates a new Box spanning from the given first to the secondPoint
.- Parameters:
first
- must not be null.second
- must not be null.
-
Box
public Box(double[] first, double[] second) Creates a new Box from the givenfirst
to thesecond
point represented as the double[].- Parameters:
first
- must not be null and contain exactly 2 doubles.second
- must not be null and contain exactly 2 doubles.
-
-
Method Details