public final class Box extends Object
box datatype in Postgres.
Uses double to represent the coordinates.
public static Box of(Point a, Point b)
Box given parameters points a and b.
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.
a - first cornerb - second cornerBox objectIllegalArgumentException - if a or b is nullpublic Point getA()
public Point getB()
Copyright © 2022. All rights reserved.