mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 08:32:38 -06:00
65 lines
3.2 KiB
Java
65 lines
3.2 KiB
Java
package kotlin.ranges;
|
|
|
|
import androidx.exifinterface.media.ExifInterface;
|
|
import java.lang.Comparable;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.ranges.OpenEndRange;
|
|
|
|
/* compiled from: Ranges.kt */
|
|
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000f\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\b\u0012\u0018\u0000*\u000e\b\u0000\u0010\u0001*\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003B\u0015\u0012\u0006\u0010\u0004\u001a\u00028\u0000\u0012\u0006\u0010\u0005\u001a\u00028\u0000¢\u0006\u0002\u0010\u0006J\u0013\u0010\u000b\u001a\u00020\f2\b\u0010\r\u001a\u0004\u0018\u00010\u000eH\u0096\u0002J\b\u0010\u000f\u001a\u00020\u0010H\u0016J\b\u0010\u0011\u001a\u00020\u0012H\u0016R\u0016\u0010\u0005\u001a\u00028\u0000X\u0096\u0004¢\u0006\n\n\u0002\u0010\t\u001a\u0004\b\u0007\u0010\bR\u0016\u0010\u0004\u001a\u00028\u0000X\u0096\u0004¢\u0006\n\n\u0002\u0010\t\u001a\u0004\b\n\u0010\b¨\u0006\u0013"}, d2 = {"Lkotlin/ranges/ComparableOpenEndRange;", ExifInterface.GPS_DIRECTION_TRUE, "", "Lkotlin/ranges/OpenEndRange;", "start", "endExclusive", "(Ljava/lang/Comparable;Ljava/lang/Comparable;)V", "getEndExclusive", "()Ljava/lang/Comparable;", "Ljava/lang/Comparable;", "getStart", "equals", "", "other", "", "hashCode", "", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes3.dex */
|
|
class ComparableOpenEndRange<T extends Comparable<? super T>> implements OpenEndRange<T> {
|
|
private final T endExclusive;
|
|
private final T start;
|
|
|
|
@Override // kotlin.ranges.OpenEndRange
|
|
public T getEndExclusive() {
|
|
return this.endExclusive;
|
|
}
|
|
|
|
@Override // kotlin.ranges.OpenEndRange
|
|
public T getStart() {
|
|
return this.start;
|
|
}
|
|
|
|
public ComparableOpenEndRange(T start, T endExclusive) {
|
|
Intrinsics.checkNotNullParameter(start, "start");
|
|
Intrinsics.checkNotNullParameter(endExclusive, "endExclusive");
|
|
this.start = start;
|
|
this.endExclusive = endExclusive;
|
|
}
|
|
|
|
@Override // kotlin.ranges.OpenEndRange
|
|
public boolean contains(T t) {
|
|
return OpenEndRange.DefaultImpls.contains(this, t);
|
|
}
|
|
|
|
@Override // kotlin.ranges.OpenEndRange
|
|
public boolean isEmpty() {
|
|
return OpenEndRange.DefaultImpls.isEmpty(this);
|
|
}
|
|
|
|
public boolean equals(Object other) {
|
|
if (other instanceof ComparableOpenEndRange) {
|
|
if (!isEmpty() || !((ComparableOpenEndRange) other).isEmpty()) {
|
|
ComparableOpenEndRange comparableOpenEndRange = (ComparableOpenEndRange) other;
|
|
if (!Intrinsics.areEqual(getStart(), comparableOpenEndRange.getStart()) || !Intrinsics.areEqual(getEndExclusive(), comparableOpenEndRange.getEndExclusive())) {
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public int hashCode() {
|
|
if (isEmpty()) {
|
|
return -1;
|
|
}
|
|
return getEndExclusive().hashCode() + (getStart().hashCode() * 31);
|
|
}
|
|
|
|
public String toString() {
|
|
return getStart() + "..<" + getEndExclusive();
|
|
}
|
|
}
|