alexandroid/decompiled/jadx/sources/androidx/compose/material/FixedThreshold.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

70 lines
4.1 KiB
Java

package androidx.compose.material;
import androidx.compose.runtime.Immutable;
import androidx.compose.ui.unit.Density;
import androidx.compose.ui.unit.Dp;
import com.amazon.alexa.redesign.view.container.CardStudioAgentSpaceMetrics;
import kotlin.Deprecated;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0087\b\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0016\u0010\u0006\u001a\u00020\u0003HÂ\u0003ø\u0001\u0001ø\u0001\u0000¢\u0006\u0004\b\u0007\u0010\bJ\u001d\u0010\t\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u0003HÆ\u0001ø\u0001\u0000¢\u0006\u0004\b\n\u0010\u000bJ\u0013\u0010\f\u001a\u00020\r2\b\u0010\u000e\u001a\u0004\u0018\u00010\u000fHÖ\u0003J\t\u0010\u0010\u001a\u00020\u0011HÖ\u0001J\t\u0010\u0012\u001a\u00020\u0013HÖ\u0001J\u001c\u0010\u0014\u001a\u00020\u0015*\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u00152\u0006\u0010\u0018\u001a\u00020\u0015H\u0016R\u0016\u0010\u0002\u001a\u00020\u0003X\u0082\u0004ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\n\u0002\u0010\u0005\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b!¨\u0006\u0019"}, d2 = {"Landroidx/compose/material/FixedThreshold;", "Landroidx/compose/material/ThresholdConfig;", "offset", "Landroidx/compose/ui/unit/Dp;", "(FLkotlin/jvm/internal/DefaultConstructorMarker;)V", "F", "component1", "component1-D9Ej5fM", "()F", "copy", "copy-0680j_4", "(F)Landroidx/compose/material/FixedThreshold;", "equals", "", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, "", "hashCode", "", "toString", "", "computeThreshold", "", "Landroidx/compose/ui/unit/Density;", "fromValue", "toValue", "material_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
@Deprecated(message = "Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. Please see developer.android.com for an overview of the changes and a migration guide.")
@Immutable
@ExperimentalMaterialApi
/* loaded from: classes.dex */
public final /* data */ class FixedThreshold implements ThresholdConfig {
public static final int $stable = 0;
private final float offset;
private FixedThreshold(float f) {
this.offset = f;
}
/* renamed from: component1-D9Ej5fM, reason: not valid java name and from getter */
private final float getOffset() {
return this.offset;
}
/* renamed from: copy-0680j_4$default, reason: not valid java name */
public static /* synthetic */ FixedThreshold m1760copy0680j_4$default(FixedThreshold fixedThreshold, float f, int i, Object obj) {
if ((i & 1) != 0) {
f = fixedThreshold.offset;
}
return fixedThreshold.m1761copy0680j_4(f);
}
@Override // androidx.compose.material.ThresholdConfig
public float computeThreshold(@NotNull Density density, float f, float f2) {
return (Math.signum(f2 - f) * density.mo557toPx0680j_4(this.offset)) + f;
}
@NotNull
/* renamed from: copy-0680j_4, reason: not valid java name */
public final FixedThreshold m1761copy0680j_4(float offset) {
return new FixedThreshold(offset, null);
}
public boolean equals(@Nullable Object other) {
if (this == other) {
return true;
}
return (other instanceof FixedThreshold) && Dp.m7373equalsimpl0(this.offset, ((FixedThreshold) other).offset);
}
public int hashCode() {
return Dp.m7374hashCodeimpl(this.offset);
}
@NotNull
public String toString() {
return "FixedThreshold(offset=" + ((Object) Dp.m7379toStringimpl(this.offset)) + ')';
}
public /* synthetic */ FixedThreshold(float f, DefaultConstructorMarker defaultConstructorMarker) {
this(f);
}
}