Interface Geometric.Box<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.Box<T,I> extends Adapter.Contract.Scalar<T>
The BOX type's PostgreSQL semantics: two corner points.
  • Method Details

    • construct

      T construct(Adapter.PullDispenser<I,Geometric.Point<I>> corners)
      Constructs a representation T from the components of the PostgreSQL data type.

      As stored, the corner point at index 0 is never below or to the left of that at index 1. This may be achieved by permuting the points or their coordinates obtained as input, in any way that preserves the box.

      Parameters:
      corners - a dispenser that will dispense a Point for index 0 and at index 1.