Files
rr3-apk/decompiled/sources/com/fyber/inneractive/sdk/model/vast/w.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

62 lines
1.7 KiB
Java

package com.fyber.inneractive.sdk.model.vast;
import android.text.TextUtils;
import java.util.ArrayList;
/* loaded from: classes2.dex */
public final class w implements Comparable<w> {
public Integer[] a = new Integer[0];
public final String b;
public static class a extends Exception {
}
public w(String str) throws a {
b(str);
a(str);
this.b = str;
}
public static void b(String str) throws a {
if (TextUtils.isEmpty(str) || !str.matches("^[0-9.]+$")) {
throw new a();
}
}
public final void a(String str) throws a {
ArrayList arrayList = new ArrayList();
for (String str2 : str.split("\\.")) {
arrayList.add(Integer.valueOf(com.fyber.inneractive.sdk.util.t.a(str2, 0)));
}
this.a = (Integer[]) arrayList.toArray(new Integer[arrayList.size()]);
}
public final String toString() {
return this.b;
}
@Override // java.lang.Comparable
/* renamed from: a, reason: merged with bridge method [inline-methods] */
public final int compareTo(w wVar) {
if (wVar == null) {
return 1;
}
int max = Math.max(this.a.length, wVar.a.length);
int i = 0;
while (i < max) {
Integer[] numArr = this.a;
int intValue = numArr.length > i ? numArr[i].intValue() : 0;
Integer[] numArr2 = wVar.a;
int intValue2 = numArr2.length > i ? numArr2[i].intValue() : 0;
if (intValue > intValue2) {
return 1;
}
if (intValue2 > intValue) {
return -1;
}
i++;
}
return 0;
}
}