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 005import java.util.List; 006 007public class Polygon { 008 009 private final List<Point> points; 010 011 public Polygon(List<Point> points) { 012 013 if(points == null) { 014 throw new IllegalArgumentException("points"); 015 } 016 017 this.points = points; 018 } 019 020 public List<Point> getPoints() { 021 return points; 022 } 023 024 public int size() { 025 return points.size(); 026 } 027}