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

120 lines
2.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.android.abc.document;
import android.graphics.Rect;
/* loaded from: classes3.dex */
public class Field {
private boolean m_owner;
private long m_ptr;
public static native boolean nativeStaticInitializer();
public native long nativeCreate();
public native long nativeCreate(int i, int i2, Rect rect, String str, String str2, float f);
public native long nativeCreateCopy(long j);
public native void nativeDispose();
public native float nativeGetConfidence();
public native int nativeGetId();
public native String nativeGetLabel();
public native int nativeGetPageIndex();
public native Rect nativeGetRectangle();
public native String nativeGetValue();
public native void nativeSetConfidence(float f);
public native void nativeSetLabel(String str);
public native void nativeSetPageIndex(int i);
public native void nativeSetRectangle(Rect rect);
public native void nativeSetValue(String str);
static {
if (!nativeStaticInitializer()) {
throw new RuntimeException("com.kofax.android.abc.document.Field: Static initializer failed.");
}
}
public Field() {
this.m_ptr = nativeCreate();
this.m_owner = true;
}
public Field(long j, boolean z) {
if (j == 0) {
throw new IllegalArgumentException("com.kofax.android.abc.document.Field: ptr value cannot be null.");
}
this.m_ptr = z ? nativeCreateCopy(j) : j;
this.m_owner = z;
}
public Field(int i, int i2, Rect rect, String str, String str2, float f) {
this.m_ptr = nativeCreate(i, i2, rect, str, str2, f);
}
public void dispose() {
if (this.m_owner) {
nativeDispose();
this.m_ptr = 0L;
}
}
public int getId() {
return nativeGetId();
}
public int getPageIndex() {
return nativeGetPageIndex();
}
public void setPageIndex(int i) {
nativeSetPageIndex(i);
}
public Rect getRectangle() {
return nativeGetRectangle();
}
public void setRectangle(Rect rect) {
nativeSetRectangle(rect);
}
public String getLabel() {
return nativeGetLabel();
}
public void setLabel(String str) {
nativeSetLabel(str);
}
public String getValue() {
return nativeGetValue();
}
public void setValue(String str) {
nativeSetValue(str);
}
public float getConfidence() {
return nativeGetConfidence();
}
public void setConfidence(float f) {
nativeSetConfidence(f);
}
public long getPtr() {
return this.m_ptr;
}
}