what-the-bank/sources/com/google/android/gms/internal/firebase_ml/zznz.java

66 lines
2.1 KiB
Java

package com.google.android.gms.internal.firebase_ml;
import com.google.android.gms.common.internal.GmsLogger;
import com.google.android.gms.common.internal.Objects;
import com.google.firebase.ml.common.FirebaseMLException;
import java.util.Set;
import java.util.concurrent.Callable;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public final class zznz implements Callable<Void> {
private final zznx zzaqd;
private final zznw zzaqe;
private final String zzaqf;
/* JADX INFO: Access modifiers changed from: package-private */
public zznz(zznx zznxVar, zznw zznwVar, String str) {
this.zzaqd = zznxVar;
this.zzaqe = zznwVar;
this.zzaqf = str;
}
/* JADX INFO: Access modifiers changed from: private */
@Override // java.util.concurrent.Callable
/* renamed from: zzls, reason: merged with bridge method [inline-methods] */
public final Void call() {
GmsLogger gmsLogger;
Set set;
GmsLogger gmsLogger2;
String str = this.zzaqf;
str.hashCode();
if (str.equals("OPERATION_RELEASE")) {
zznw zznwVar = this.zzaqe;
gmsLogger = zznx.zzape;
gmsLogger.v("ModelResourceManager", "Releasing modelResource");
zznwVar.release();
set = this.zzaqd.zzaqa;
set.remove(zznwVar);
return null;
}
if (!str.equals("OPERATION_LOAD")) {
return null;
}
try {
this.zzaqd.zzf(this.zzaqe);
return null;
} catch (FirebaseMLException e) {
gmsLogger2 = zznx.zzape;
gmsLogger2.e("ModelResourceManager", "Error preloading model resource", e);
return null;
}
}
public final boolean equals(Object obj) {
if (!(obj instanceof zznz)) {
return false;
}
zznz zznzVar = (zznz) obj;
return Objects.equal(this.zzaqe, zznzVar.zzaqe) && Objects.equal(this.zzaqf, zznzVar.zzaqf);
}
public final int hashCode() {
return Objects.hashCode(this.zzaqe, this.zzaqf);
}
}