001// Licensed under the MIT license. See LICENSE file in the project root for full license information.
002
003package de.bytefish.pgbulkinsert.pgsql.model.geometric;
004
005public class Box {
006
007    private final Point high;
008    private final Point low;
009
010    public Box(Point high, Point low) {
011        if(high == null) {
012            throw new IllegalArgumentException("high");
013        }
014        if(low == null) {
015            throw new IllegalArgumentException("low");
016        }
017        this.high = high;
018        this.low = low;
019    }
020
021    public Point getHigh() {
022        return high;
023    }
024
025    public Point getLow() {
026        return low;
027    }
028
029}