mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 09:27:16 +01:00
105 lines
4.8 KiB
Java
105 lines
4.8 KiB
Java
package kotlin;
|
|
|
|
import com.amazon.alexa.redesign.view.container.CardStudioAgentSpaceMetrics;
|
|
import kotlin.jvm.JvmField;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@SinceKotlin(version = "1.1")
|
|
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u000f\n\u0000\n\u0002\u0010\b\n\u0002\b\f\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0005\b\u0007\u0018\u0000 \u00182\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\u0018B\u001f\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0003¢\u0006\u0004\b\u0006\u0010\u0007B\u0019\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0004\b\u0006\u0010\bJ \u0010\u000e\u001a\u00020\u00032\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0005\u001a\u00020\u0003H\u0002J\b\u0010\u000f\u001a\u00020\u0010H\u0016J\u0013\u0010\u0011\u001a\u00020\u00122\b\u0010\u0013\u001a\u0004\u0018\u00010\u0014H\u0096\u0002J\b\u0010\u0015\u001a\u00020\u0003H\u0016J\u0011\u0010\u0016\u001a\u00020\u00032\u0006\u0010\u0013\u001a\u00020\u0000H\u0096\u0002J\u0016\u0010\u0017\u001a\u00020\u00122\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0003J\u001e\u0010\u0017\u001a\u00020\u00122\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0005\u001a\u00020\u0003R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\nR\u0011\u0010\u0005\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\nR\u000e\u0010\r\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0019"}, d2 = {"Lkotlin/KotlinVersion;", "", "major", "", "minor", "patch", "<init>", "(III)V", "(II)V", "getMajor", "()I", "getMinor", "getPatch", "version", "versionOf", "toString", "", "equals", "", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, "", "hashCode", "compareTo", "isAtLeast", "Companion", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
|
|
/* loaded from: classes10.dex */
|
|
public final class KotlinVersion implements Comparable<KotlinVersion> {
|
|
public static final int MAX_COMPONENT_VALUE = 255;
|
|
private final int major;
|
|
private final int minor;
|
|
private final int patch;
|
|
private final int version;
|
|
|
|
@JvmField
|
|
@NotNull
|
|
public static final KotlinVersion CURRENT = KotlinVersionCurrentValue.get();
|
|
|
|
public KotlinVersion(int i, int i2, int i3) {
|
|
this.major = i;
|
|
this.minor = i2;
|
|
this.patch = i3;
|
|
this.version = versionOf(i, i2, i3);
|
|
}
|
|
|
|
private final int versionOf(int major, int minor, int patch) {
|
|
if (major >= 0 && major < 256 && minor >= 0 && minor < 256 && patch >= 0 && patch < 256) {
|
|
return (major << 16) + (minor << 8) + patch;
|
|
}
|
|
throw new IllegalArgumentException(("Version components are out of range: " + major + '.' + minor + '.' + patch).toString());
|
|
}
|
|
|
|
@Override // java.lang.Comparable
|
|
public int compareTo(@NotNull KotlinVersion other) {
|
|
other.getClass();
|
|
return this.version - other.version;
|
|
}
|
|
|
|
public boolean equals(@Nullable Object other) {
|
|
if (this == other) {
|
|
return true;
|
|
}
|
|
KotlinVersion kotlinVersion = other instanceof KotlinVersion ? (KotlinVersion) other : null;
|
|
return kotlinVersion != null && this.version == kotlinVersion.version;
|
|
}
|
|
|
|
public final int getMajor() {
|
|
return this.major;
|
|
}
|
|
|
|
public final int getMinor() {
|
|
return this.minor;
|
|
}
|
|
|
|
public final int getPatch() {
|
|
return this.patch;
|
|
}
|
|
|
|
/* renamed from: hashCode, reason: from getter */
|
|
public int getVersion() {
|
|
return this.version;
|
|
}
|
|
|
|
public final boolean isAtLeast(int major, int minor, int patch) {
|
|
int i = this.major;
|
|
if (i > major) {
|
|
return true;
|
|
}
|
|
if (i != major) {
|
|
return false;
|
|
}
|
|
int i2 = this.minor;
|
|
if (i2 <= minor) {
|
|
return i2 == minor && this.patch >= patch;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@NotNull
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(this.major);
|
|
sb.append('.');
|
|
sb.append(this.minor);
|
|
sb.append('.');
|
|
sb.append(this.patch);
|
|
return sb.toString();
|
|
}
|
|
|
|
public KotlinVersion(int i, int i2) {
|
|
this(i, i2, 0);
|
|
}
|
|
|
|
public final boolean isAtLeast(int major, int minor) {
|
|
int i = this.major;
|
|
if (i <= major) {
|
|
return i == major && this.minor >= minor;
|
|
}
|
|
return true;
|
|
}
|
|
}
|