- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
53 lines
1.6 KiB
Java
53 lines
1.6 KiB
Java
package androidx.biometric;
|
|
|
|
import androidx.annotation.Nullable;
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes.dex */
|
|
class BiometricErrorData {
|
|
private final int mErrorCode;
|
|
|
|
@Nullable
|
|
private final CharSequence mErrorMessage;
|
|
|
|
public int getErrorCode() {
|
|
return this.mErrorCode;
|
|
}
|
|
|
|
@Nullable
|
|
public CharSequence getErrorMessage() {
|
|
return this.mErrorMessage;
|
|
}
|
|
|
|
public BiometricErrorData(int i, @Nullable CharSequence charSequence) {
|
|
this.mErrorCode = i;
|
|
this.mErrorMessage = charSequence;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Arrays.hashCode(new Object[]{Integer.valueOf(this.mErrorCode), convertToString(this.mErrorMessage)});
|
|
}
|
|
|
|
public boolean equals(@Nullable Object obj) {
|
|
if (!(obj instanceof BiometricErrorData)) {
|
|
return false;
|
|
}
|
|
BiometricErrorData biometricErrorData = (BiometricErrorData) obj;
|
|
return this.mErrorCode == biometricErrorData.mErrorCode && isErrorMessageEqualTo(biometricErrorData.mErrorMessage);
|
|
}
|
|
|
|
private boolean isErrorMessageEqualTo(@Nullable CharSequence charSequence) {
|
|
String convertToString = convertToString(this.mErrorMessage);
|
|
String convertToString2 = convertToString(charSequence);
|
|
return (convertToString == null && convertToString2 == null) || (convertToString != null && convertToString.equals(convertToString2));
|
|
}
|
|
|
|
@Nullable
|
|
private static String convertToString(@Nullable CharSequence charSequence) {
|
|
if (charSequence != null) {
|
|
return charSequence.toString();
|
|
}
|
|
return null;
|
|
}
|
|
}
|