Class NativeTypeFactory<T extends NativeType<T>,​A>

  • Type Parameters:
    T - the NativeType this is attached to
    A - the Access family (ByteAccess, DoubleAccess, and so on)

    public final class NativeTypeFactory<T extends NativeType<T>,​A>
    extends java.lang.Object
    NativeTypeFactory is used to create a linked type T for a matching NativeImg.

    It also provides information about the primitive java type that backs the type T.

    NativeTypeFactory binds a {code PrimitiveType} enum constant to a Access interface (ByteAccess, DoubleAccess, and so on). Instances can only be constructed via static methods BYTE(Function), DOUBLE(Function), etc. to prevent non-matching combinations of Access interface and PrimitiveType constant.