/** * Create a new instance of this class by defining a list of {@link Point}s which follow the * correct specifications described in the Point documentation. Note that there should not be any * duplicate points inside the list. <p> Note that if less than 2 points are passed in, a runtime * exception will occur. </p> * * @param points a list of {@link Point}s which make up the LineString geometry * @return a new instance of this class defined by the values passed inside this static factory * method * @since 3.0.0 */ public static MultiPoint fromLngLats(@NonNull List<Point> points) { return new AutoValue_MultiPoint(TYPE, null, points); }
/** * Create a new instance of this class by defining a list of {@link Point}s which follow the * correct specifications described in the Point documentation. Note that there should not be any * duplicate points inside the list. <p> Note that if less than 2 points are passed in, a runtime * exception will occur. </p> * * @param points a list of {@link Point}s which make up the LineString geometry * @return a new instance of this class defined by the values passed inside this static factory * method * @since 3.0.0 */ public static MultiPoint fromLngLats(@NonNull List<Point> points) { return new AutoValue_MultiPoint(TYPE, null, points); }
/** * Create a new instance of this class by defining a list of {@link Point}s which follow the * correct specifications described in the Point documentation. Note that there should not be any * duplicate points inside the list. <p> Note that if less than 2 points are passed in, a runtime * exception will occur. </p> * * @param points a list of {@link Point}s which make up the LineString geometry * @param bbox optionally include a bbox definition as a double array * @return a new instance of this class defined by the values passed inside this static factory * method * @since 3.0.0 */ public static MultiPoint fromLngLats(@NonNull List<Point> points, @Nullable BoundingBox bbox) { return new AutoValue_MultiPoint(TYPE, bbox, points); }
/** * Create a new instance of this class by defining a list of {@link Point}s which follow the * correct specifications described in the Point documentation. Note that there should not be any * duplicate points inside the list. <p> Note that if less than 2 points are passed in, a runtime * exception will occur. </p> * * @param points a list of {@link Point}s which make up the LineString geometry * @param bbox optionally include a bbox definition as a double array * @return a new instance of this class defined by the values passed inside this static factory * method * @since 3.0.0 */ public static MultiPoint fromLngLats(@NonNull List<Point> points, @Nullable BoundingBox bbox) { return new AutoValue_MultiPoint(TYPE, bbox, points); }
static MultiPoint fromLngLats(@NonNull double[][] coordinates) { ArrayList<Point> converted = new ArrayList<>(coordinates.length); for (int i = 0; i < coordinates.length; i++) { converted.add(Point.fromLngLat(coordinates[i])); } return new AutoValue_MultiPoint(TYPE, null, converted); }
static MultiPoint fromLngLats(@NonNull double[][] coordinates) { ArrayList<Point> converted = new ArrayList<>(coordinates.length); for (int i = 0; i < coordinates.length; i++) { converted.add(Point.fromLngLat(coordinates[i])); } return new AutoValue_MultiPoint(TYPE, null, converted); }