- Type Parameters:
T
- the type returned by the constructorI1
- internal parameter that consumers of this interface should wildcard; an implementor may bound this parameter to get stricter type checking of the boundingBox dispenser used within the implementing body.I2
- internal parameter that consumers of this interface should wildcard; an implementor may bound this parameter to get stricter type checking of the vertices dispenser used within the implementing body.
- All Superinterfaces:
Adapter.Contract<T>
,Adapter.Contract.Scalar<T>
- Enclosing interface:
Geometric
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface Geometric.Polygon<T,I1,I2>
extends Adapter.Contract.Scalar<T>
The
POLYGON
type's PostgreSQL semantics: vertex points and
a bounding box.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.postgresql.pljava.Adapter.Contract
Adapter.Contract.Array<T,
E, A extends Adapter<E, ?>>, Adapter.Contract.Scalar<T> -
Method Summary
Modifier and TypeMethodDescriptionconstruct
(int nVertices, Adapter.Dispenser<I1, Geometric.Box<I1, ?>> boundingBox, Adapter.PullDispenser<I2, Geometric.Point<I2>> vertices) Constructs a representation T from the components of the PostgreSQL data type.
-
Method Details
-
construct
T construct(int nVertices, Adapter.Dispenser<I1, Geometric.Box<I1, ?>> boundingBox, Adapter.PullDispenser<I2, Geometric.Point<I2>> vertices) Constructs a representation T from the components of the PostgreSQL data type.- Parameters:
nVertices
- the number of vertices in the polygonboundingBox
- a dispenser from which the bounding box may be obtained.vertices
- a dispenser from which a vertexPoint
may be obtained for each index 0 through nVertices - 1.
-