Class Adapter.ArrayBuilder<TA,TI>

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.
Enclosing class:
Adapter<T,U>

public static final class Adapter.ArrayBuilder<TA,TI> extends Object
Builder to derive properly-typed array adapters of various dimensionalities, first obtained from an Adapter.ArrayProto.
  • Method Details

    • build

      public Adapter.Array<TA> build()
      Returns an array adapter that will produce arrays with the chosen number of dimensions, and the original adapter's topType as the component type.
    • a1

      public Adapter.ArrayBuilder<TA[],TI> a1()
      Adds one to the result-array dimensions of the Adapter this builder will build.
      Returns:
      this builder, with dimensions increased, and a sneaky unchecked cast to the corresponding generic type.
    • a2

      public Adapter.ArrayBuilder<TA[][],TI> a2()
      Adds two to the result-array dimensions of the Adapter this builder will build.
      Returns:
      this builder, with dimensions increased, and a sneaky unchecked cast to the corresponding generic type.
    • a4

      public Adapter.ArrayBuilder<TA[][][][],TI> a4()
      Adds four to the result-array dimensions of the Adapter this builder will build.
      Returns:
      this builder, with dimensions increased, and a sneaky unchecked cast to the corresponding generic type.