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

85 lines
2.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/* loaded from: classes5.dex */
public final class fOD {
public final List<Object> a;
public final String d;
public fOD(String str, List<Object> list) {
this.d = str;
this.a = list == null ? new ArrayList<>() : list;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static Object e(Object obj) {
if (obj == null) {
return null;
}
if (!(obj instanceof List)) {
return obj;
}
List list = (List) obj;
byte[] bArr = new byte[list.size()];
for (int i = 0; i < list.size(); i++) {
bArr[i] = (byte) ((Integer) list.get(i)).intValue();
}
return bArr;
}
public final String toString() {
String str;
StringBuilder sb = new StringBuilder();
sb.append(this.d);
List<Object> list = this.a;
if (list == null || list.isEmpty()) {
str = "";
} else {
StringBuilder sb2 = new StringBuilder(" ");
sb2.append(this.a);
str = sb2.toString();
}
sb.append(str);
return sb.toString();
}
public final int hashCode() {
String str = this.d;
if (str != null) {
return str.hashCode();
}
return 0;
}
public final boolean equals(Object obj) {
if (!(obj instanceof fOD)) {
return false;
}
fOD fod = (fOD) obj;
String str = this.d;
if (str != null) {
if (!str.equals(fod.d)) {
return false;
}
} else if (fod.d != null) {
return false;
}
if (this.a.size() != fod.a.size()) {
return false;
}
for (int i = 0; i < this.a.size(); i++) {
if ((this.a.get(i) instanceof byte[]) && (fod.a.get(i) instanceof byte[])) {
if (!Arrays.equals((byte[]) this.a.get(i), (byte[]) fod.a.get(i))) {
return false;
}
} else if (!this.a.get(i).equals(fod.a.get(i))) {
return false;
}
}
return true;
}
}