what-the-bank/sources/com/google/firebase/ml/vision/label/FirebaseVisionImageLabel.java

87 lines
2.8 KiB
Java

package com.google.firebase.ml.vision.label;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.internal.firebase_ml.zzjb;
import com.google.android.gms.internal.firebase_ml.zzpm;
import com.google.android.gms.vision.label.ImageLabel;
/* loaded from: classes2.dex */
public class FirebaseVisionImageLabel {
private final String text;
private final float zzatw;
private final String zzavo;
public FirebaseVisionImageLabel(ImageLabel imageLabel) {
this(imageLabel.getLabel(), imageLabel.getConfidence(), imageLabel.getMid());
}
public static FirebaseVisionImageLabel zza(zzjb zzjbVar) {
if (zzjbVar == null) {
return null;
}
return new FirebaseVisionImageLabel(zzjbVar.getDescription(), zzpm.zza(zzjbVar.zzhv()), zzjbVar.getMid());
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x001a, code lost:
if (java.lang.Float.compare(r2, 1.0f) > 0) goto L7;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private FirebaseVisionImageLabel(java.lang.String r1, float r2, java.lang.String r3) {
/*
r0 = this;
r0.<init>()
if (r1 != 0) goto L7
java.lang.String r1 = ""
L7:
r0.text = r1
r0.zzavo = r3
r1 = 0
int r3 = java.lang.Float.compare(r2, r1)
if (r3 >= 0) goto L14
L12:
r2 = r1
goto L1d
L14:
r1 = 1065353216(0x3f800000, float:1.0)
int r3 = java.lang.Float.compare(r2, r1)
if (r3 <= 0) goto L1d
goto L12
L1d:
r0.zzatw = r2
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.firebase.ml.vision.label.FirebaseVisionImageLabel.<init>(java.lang.String, float, java.lang.String):void");
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof FirebaseVisionImageLabel)) {
return false;
}
FirebaseVisionImageLabel firebaseVisionImageLabel = (FirebaseVisionImageLabel) obj;
return Objects.equal(this.zzavo, firebaseVisionImageLabel.getEntityId()) && Objects.equal(this.text, firebaseVisionImageLabel.getText()) && Float.compare(this.zzatw, firebaseVisionImageLabel.getConfidence()) == 0;
}
public int hashCode() {
return Objects.hashCode(this.zzavo, this.text, Float.valueOf(this.zzatw));
}
public String getText() {
return this.text;
}
public String getEntityId() {
return this.zzavo;
}
public float getConfidence() {
return this.zzatw;
}
}