what-the-bank/sources/com/kofax/android/abc/document/Table.java

90 lines
2.1 KiB
Java

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<Integer> nativeGetRow(int i);
public native ArrayList<ArrayList<Integer>> nativeGetRows();
public native int nativeaddRow(long j, ArrayList<Integer> 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<Integer> arrayList) {
return nativeaddRow(document.getPtr(), arrayList);
}
public int getNumberOfRows() {
return nativeGetNumberOfRows();
}
public int getNumberOfColumns() {
return nativeGetNumberOfColumns();
}
public ArrayList<Integer> getRow(int i) {
return nativeGetRow(i);
}
public ArrayList<ArrayList<Integer>> getRows() {
return nativeGetRows();
}
public long getPtr() {
return this.m_ptr;
}
}