io.vertx.kotlin.pgclient.data.Polygon.kt Maven / Gradle / Ivy
/*
* Copyright 2019 Red Hat, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*/
package io.vertx.kotlin.pgclient.data
import io.vertx.pgclient.data.Polygon
import io.vertx.pgclient.data.Point
/**
* A function providing a DSL for building [io.vertx.pgclient.data.Polygon] objects.
*
* Polygon data type in Postgres represented by lists of points (the vertexes of the polygon).
* Polygons are very similar to closed paths, but are stored differently and have their own set of support routines.
*
* @param points
*
*
* NOTE: This function has been automatically generated from the [io.vertx.pgclient.data.Polygon original] using Vert.x codegen.
*/
fun polygonOf(
points: Iterable? = null): Polygon = io.vertx.pgclient.data.Polygon().apply {
if (points != null) {
this.setPoints(points.toList())
}
}
/**
* A function providing a DSL for building [io.vertx.pgclient.data.Polygon] objects.
*
* Polygon data type in Postgres represented by lists of points (the vertexes of the polygon).
* Polygons are very similar to closed paths, but are stored differently and have their own set of support routines.
*
* @param points
*
*
* NOTE: This function has been automatically generated from the [io.vertx.pgclient.data.Polygon original] using Vert.x codegen.
*/
@Deprecated(
message = "This function will be removed in a future version",
replaceWith = ReplaceWith("polygonOf(points)")
)
fun Polygon(
points: Iterable? = null): Polygon = io.vertx.pgclient.data.Polygon().apply {
if (points != null) {
this.setPoints(points.toList())
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy