what-the-bank/sources/o/IwF.java

109 lines
2.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.text.TextUtils;
import java.net.URL;
import java.security.MessageDigest;
/* loaded from: classes.dex */
public class IwF implements InterfaceC2545agd {
public final String a;
public final QmN b;
public URL c;
public String d;
private int g;
private volatile byte[] h;
public final URL j;
public IwF(URL url) {
this(url, QmN.c);
}
public IwF(String str) {
this(str, QmN.c);
}
private IwF(URL url, QmN qmN) {
if (url == null) {
throw new NullPointerException("Argument must not be null");
}
this.j = url;
this.a = null;
if (qmN == null) {
throw new NullPointerException("Argument must not be null");
}
this.b = qmN;
}
private IwF(String str, QmN qmN) {
this.j = null;
if (!TextUtils.isEmpty(str)) {
this.a = str;
if (qmN == null) {
throw new NullPointerException("Argument must not be null");
}
this.b = qmN;
return;
}
throw new IllegalArgumentException("Must not be null or empty");
}
private String c() {
String str = this.a;
if (str != null) {
return str;
}
URL url = this.j;
if (url != null) {
return url.toString();
}
throw new NullPointerException("Argument must not be null");
}
public String toString() {
return c();
}
@Override // o.InterfaceC2545agd
public final void a(MessageDigest messageDigest) {
if (this.h == null) {
this.h = c().getBytes(e);
}
messageDigest.update(this.h);
}
@Override // o.InterfaceC2545agd
public boolean equals(Object obj) {
if (!(obj instanceof IwF)) {
return false;
}
IwF iwF = (IwF) obj;
String str = this.a;
if (str == null) {
URL url = this.j;
if (url == null) {
throw new NullPointerException("Argument must not be null");
}
str = url.toString();
}
String str2 = iwF.a;
if (str2 == null) {
URL url2 = iwF.j;
if (url2 == null) {
throw new NullPointerException("Argument must not be null");
}
str2 = url2.toString();
}
return str.equals(str2) && this.b.equals(iwF.b);
}
@Override // o.InterfaceC2545agd
public int hashCode() {
if (this.g == 0) {
int hashCode = c().hashCode();
this.g = hashCode;
this.g = (hashCode * 31) + this.b.hashCode();
}
return this.g;
}
}