Interface Geometric.Path<T,I>

Type Parameters:
T - the type returned by the constructor
I - internal parameter that consumers of this interface should wildcard; an implementor may bound this parameter to get stricter type checking of the Dispenser uses 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.Path<T,I> extends Adapter.Contract.Scalar<T>
The PATH type's PostgreSQL semantics: vertex points and whether closed.
  • Method Details

    • construct

      T construct(int nPoints, boolean closed, Adapter.PullDispenser<I,Geometric.Point<I>> points)
      Constructs a representation T from the components of the PostgreSQL data type.
      Parameters:
      nPoints - the number of points on the path
      closed - whether the path should be understood to include a segment joining the last point to the first one.
      points - a dispenser that will dispense a Point for each index 0 through nPoint - 1.