what-the-bank/sources/com/kofax/mobile/sdk/capture/model/Field.java

64 lines
1.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.capture.model;
import java.io.Serializable;
/* loaded from: classes3.dex */
public class Field<T extends Serializable> implements Serializable {
private final String acX;
private final double acY;
private final T acZ;
private final FieldLocation ada;
public Field(String str, T t, double d, FieldLocation fieldLocation) {
this.acX = str;
this.acZ = t;
this.acY = d;
this.ada = fieldLocation;
}
/* renamed from: clone, reason: merged with bridge method [inline-methods] */
public Field<T> m288clone() {
return new Field<>(this.acX, this.acZ, this.acY, this.ada);
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getName());
sb.append(": ");
sb.append(getObject());
sb.append(", Confidence: ");
sb.append(getConfidence());
return sb.toString();
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
return this.acX.equals(((Field) obj).acX);
}
public int hashCode() {
return this.acX.hashCode();
}
public T getObject() {
return this.acZ;
}
public String getName() {
return this.acX;
}
public FieldLocation getLocation() {
return this.ada;
}
public double getConfidence() {
return this.acY;
}
}