what-the-bank/sources/com/google/firebase/ml/vision/text/RecognizedLanguage.java

44 lines
1.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.firebase.ml.vision.text;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.internal.firebase_ml.zziz;
/* loaded from: classes2.dex */
public class RecognizedLanguage {
private final String languageCode;
private RecognizedLanguage(String str) {
this.languageCode = str;
}
public static RecognizedLanguage zza(zziz zzizVar) {
if (zzizVar == null || zzizVar.getLanguageCode() == null || zzizVar.getLanguageCode().isEmpty()) {
return null;
}
return new RecognizedLanguage(zzizVar.getLanguageCode());
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof RecognizedLanguage)) {
return false;
}
RecognizedLanguage recognizedLanguage = (RecognizedLanguage) obj;
String str = this.languageCode;
if (str == null) {
return recognizedLanguage.languageCode == null;
}
return str.equals(recognizedLanguage.languageCode);
}
public int hashCode() {
return Objects.hashCode(this.languageCode);
}
public String getLanguageCode() {
return this.languageCode;
}
}