Interface Geometric.Polygon<T,I1,I2>

Type Parameters:
T - the type returned by the constructor
I1 - 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.
  • 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 polygon
      boundingBox - a dispenser from which the bounding box may be obtained.
      vertices - a dispenser from which a vertex Point may be obtained for each index 0 through nVertices - 1.