Class Box
java.lang.Object
io.r2dbc.postgresql.codec.Box
Value object that maps to the
box datatype in Postgres.
Uses double to represent the coordinates.
- Since:
- 0.8.5
-
Method Details
-
of
Create a newBoxgiven parameterspointsaandb.Any two opposite corners can be supplied on input, but the values will be reordered as needed to store the upper right and lower left corners, in that order.
- Parameters:
a- first cornerb- second corner- Returns:
- the new
Boxobject - Throws:
IllegalArgumentException- ifaorbisnull
-
of
Create a newBoxgiven parametersax,ay,bxandby.Any two opposite corners can be supplied on input, but the values will be reordered as needed to store the upper right and lower left corners, in that order.
-
getA
-
getB
-
equals
-
hashCode
-
toString
-