discord-jadx/app/src/main/java/d0/e.java

66 lines
1.6 KiB
Java
Raw Normal View History

2021-11-08 18:25:28 +00:00
package d0;
2021-06-27 20:44:35 +00:00
2021-11-08 18:25:28 +00:00
import d0.z.d.m;
2021-06-27 20:44:35 +00:00
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: KotlinVersion.kt */
2022-03-02 20:59:20 +00:00
/* loaded from: classes3.dex */
2021-06-27 20:44:35 +00:00
public final class e implements Comparable<e> {
2021-12-17 22:03:14 +00:00
public static final e j = f.get();
2021-06-27 20:44:35 +00:00
public final int k;
public final int l;
public final int m;
2021-12-17 22:03:14 +00:00
public final int n;
2021-06-27 20:44:35 +00:00
/* compiled from: KotlinVersion.kt */
2022-03-02 20:59:20 +00:00
/* loaded from: classes3.dex */
2021-06-27 20:44:35 +00:00
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
static {
new a(null);
}
2021-12-17 22:03:14 +00:00
public e(int i, int i2, int i3) {
this.l = i;
this.m = i2;
this.n = i3;
if (i >= 0 && 255 >= i && i2 >= 0 && 255 >= i2 && i3 >= 0 && 255 >= i3) {
this.k = (i << 16) + (i2 << 8) + i3;
2021-06-27 20:44:35 +00:00
return;
}
2021-12-17 22:03:14 +00:00
throw new IllegalArgumentException(("Version components are out of range: " + i + '.' + i2 + '.' + i3).toString());
2021-06-27 20:44:35 +00:00
}
public int compareTo(e eVar) {
m.checkNotNullParameter(eVar, "other");
2021-12-17 22:03:14 +00:00
return this.k - eVar.k;
2021-06-27 20:44:35 +00:00
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof e)) {
obj = null;
}
e eVar = (e) obj;
2021-12-17 22:03:14 +00:00
return eVar != null && this.k == eVar.k;
2021-06-27 20:44:35 +00:00
}
public int hashCode() {
2021-12-17 22:03:14 +00:00
return this.k;
2021-06-27 20:44:35 +00:00
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(this.l);
sb.append('.');
sb.append(this.m);
2021-12-17 22:03:14 +00:00
sb.append('.');
sb.append(this.n);
2021-06-27 20:44:35 +00:00
return sb.toString();
}
}