- Type Parameters:
T
- the type returned by the constructorI
- internal parameter that consumers of this interface should wildcard; an implementor may bound this parameter to get stricter type checking of theDispenser
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.
The
BOX
type's PostgreSQL semantics: two corner points.-
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
(Adapter.PullDispenser<I, Geometric.Point<I>> corners) Constructs a representation T from the components of the PostgreSQL data type.
-
Method Details
-
construct
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 aPoint
for index 0 and at index 1.
-