package com.kofax.android.abc.document; import java.util.ArrayList; /* loaded from: classes3.dex */ public class Table { private boolean m_owner; private long m_ptr; public static native boolean nativeStaticInitializer(); public native long nativeCreate(); public native long nativeCreate(String str); public native long nativeCreateCopy(long j); public native void nativeDispose(); public native String nativeGetName(); public native int nativeGetNumberOfColumns(); public native int nativeGetNumberOfRows(); public native ArrayList nativeGetRow(int i); public native ArrayList> nativeGetRows(); public native int nativeaddRow(long j, ArrayList arrayList); static { if (!nativeStaticInitializer()) { throw new RuntimeException("com.kofax.android.abc.document.Table: Static initializer failed."); } } public Table() { this.m_ptr = nativeCreate(); this.m_owner = true; } public Table(long j, boolean z) { if (j == 0) { throw new IllegalArgumentException("com.kofax.android.abc.document.Table: ptr value cannot be null."); } this.m_ptr = z ? nativeCreateCopy(j) : j; this.m_owner = z; } public void dispose() { if (this.m_owner) { nativeDispose(); this.m_ptr = 0L; } } public Table(String str) { this.m_ptr = nativeCreate(str); } public String getName() { return nativeGetName(); } public int addRow(Document document, ArrayList arrayList) { return nativeaddRow(document.getPtr(), arrayList); } public int getNumberOfRows() { return nativeGetNumberOfRows(); } public int getNumberOfColumns() { return nativeGetNumberOfColumns(); } public ArrayList getRow(int i) { return nativeGetRow(i); } public ArrayList> getRows() { return nativeGetRows(); } public long getPtr() { return this.m_ptr; } }