mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
29 lines
2 KiB
Java
29 lines
2 KiB
Java
package androidx.compose.foundation.pager;
|
|
|
|
import kotlin.Metadata;
|
|
import kotlin.ranges.RangesKt;
|
|
|
|
/* compiled from: Pager.kt */
|
|
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0010\u0007\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0002\b\u0000\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J0\u0010\u0005\u001a\u00020\u00032\u0006\u0010\u0006\u001a\u00020\u00032\u0006\u0010\u0007\u001a\u00020\u00032\u0006\u0010\b\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\u00032\u0006\u0010\u000b\u001a\u00020\u0003H\u0016J\u0013\u0010\f\u001a\u00020\r2\b\u0010\u000e\u001a\u0004\u0018\u00010\u000fH\u0096\u0002J\b\u0010\u0010\u001a\u00020\u0003H\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0011"}, d2 = {"Landroidx/compose/foundation/pager/PagerSnapDistanceMaxPages;", "Landroidx/compose/foundation/pager/PagerSnapDistance;", "pagesLimit", "", "(I)V", "calculateTargetPage", "startPage", "suggestedTargetPage", "velocity", "", "pageSize", "pageSpacing", "equals", "", "other", "", "hashCode", "foundation_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class PagerSnapDistanceMaxPages implements PagerSnapDistance {
|
|
private final int pagesLimit;
|
|
|
|
public PagerSnapDistanceMaxPages(int i) {
|
|
this.pagesLimit = i;
|
|
}
|
|
|
|
@Override // androidx.compose.foundation.pager.PagerSnapDistance
|
|
public int calculateTargetPage(int startPage, int suggestedTargetPage, float velocity, int pageSize, int pageSpacing) {
|
|
int i = this.pagesLimit;
|
|
return RangesKt.coerceIn(suggestedTargetPage, startPage - i, startPage + i);
|
|
}
|
|
|
|
public boolean equals(Object other) {
|
|
return (other instanceof PagerSnapDistanceMaxPages) && this.pagesLimit == ((PagerSnapDistanceMaxPages) other).pagesLimit;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Integer.hashCode(this.pagesLimit);
|
|
}
|
|
}
|