java.lang.Object
org.postgresql.pljava.Adapter.ArrayBuilder<TA,TI>
- Type Parameters:
TA
- The array type represented by this builder. a1() will produce a builder for TA[], and so on.TI
- The type of a one-dimension array of the original component type; remains unchanged by increases to the dimensionality of TA.
Builder to derive properly-typed array adapters of various
dimensionalities, first obtained from an
Adapter.ArrayProto
.-
Method Summary
Modifier and TypeMethodDescriptiona1()
Adds one to the result-array dimensions of theAdapter
this builder will build.Adapter.ArrayBuilder
<TA[][], TI> a2()
Adds two to the result-array dimensions of theAdapter
this builder will build.Adapter.ArrayBuilder
<TA[][][][], TI> a4()
Adds four to the result-array dimensions of theAdapter
this builder will build.build()
Returns an array adapter that will produce arrays with the chosen number of dimensions, and the original adapter'stopType
as the component type.
-
Method Details
-
build
Returns an array adapter that will produce arrays with the chosen number of dimensions, and the original adapter'stopType
as the component type. -
a1
Adds one to the result-array dimensions of theAdapter
this builder will build.- Returns:
- this builder, with dimensions increased, and a sneaky unchecked cast to the corresponding generic type.
-
a2
Adds two to the result-array dimensions of theAdapter
this builder will build.- Returns:
- this builder, with dimensions increased, and a sneaky unchecked cast to the corresponding generic type.
-
a4
Adds four to the result-array dimensions of theAdapter
this builder will build.- Returns:
- this builder, with dimensions increased, and a sneaky unchecked cast to the corresponding generic type.
-