mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
105 lines
6.8 KiB
Java
105 lines
6.8 KiB
Java
package androidx.compose.ui.input.pointer;
|
|
|
|
import androidx.compose.ui.node.ModifierNodeElement;
|
|
import androidx.compose.ui.platform.InspectorInfo;
|
|
import java.util.Arrays;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: SuspendingPointerInputFilter.kt */
|
|
@Metadata(d1 = {"\u0000J\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u0011\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\f\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B_\u0012\n\b\u0002\u0010\u0003\u001a\u0004\u0018\u00010\u0004\u0012\n\b\u0002\u0010\u0005\u001a\u0004\u0018\u00010\u0004\u0012\u0014\b\u0002\u0010\u0006\u001a\u000e\u0012\b\b\u0001\u0012\u0004\u0018\u00010\u0004\u0018\u00010\u0007\u0012'\u0010\b\u001a#\b\u0001\u0012\u0004\u0012\u00020\n\u0012\n\u0012\b\u0012\u0004\u0012\u00020\f0\u000b\u0012\u0006\u0012\u0004\u0018\u00010\u00040\t¢\u0006\u0002\b\rø\u0001\u0000¢\u0006\u0002\u0010\u000eJ\b\u0010\u0018\u001a\u00020\u0002H\u0016J\u0013\u0010\u0019\u001a\u00020\u001a2\b\u0010\u001b\u001a\u0004\u0018\u00010\u0004H\u0096\u0002J\b\u0010\u001c\u001a\u00020\u001dH\u0016J\u0010\u0010\u001e\u001a\u00020\f2\u0006\u0010\u001f\u001a\u00020\u0002H\u0016J\f\u0010 \u001a\u00020\f*\u00020!H\u0016R\u0013\u0010\u0003\u001a\u0004\u0018\u00010\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0010R\u001f\u0010\u0006\u001a\u000e\u0012\b\b\u0001\u0012\u0004\u0018\u00010\u0004\u0018\u00010\u0007¢\u0006\n\n\u0002\u0010\u0014\u001a\u0004\b\u0012\u0010\u0013R7\u0010\b\u001a#\b\u0001\u0012\u0004\u0012\u00020\n\u0012\n\u0012\b\u0012\u0004\u0012\u00020\f0\u000b\u0012\u0006\u0012\u0004\u0018\u00010\u00040\t¢\u0006\u0002\b\rø\u0001\u0000¢\u0006\n\n\u0002\u0010\u0017\u001a\u0004\b\u0015\u0010\u0016\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\""}, d2 = {"Landroidx/compose/ui/input/pointer/SuspendPointerInputElement;", "Landroidx/compose/ui/node/ModifierNodeElement;", "Landroidx/compose/ui/input/pointer/SuspendingPointerInputModifierNodeImpl;", "key1", "", "key2", "keys", "", "pointerInputHandler", "Lkotlin/Function2;", "Landroidx/compose/ui/input/pointer/PointerInputScope;", "Lkotlin/coroutines/Continuation;", "", "Lkotlin/ExtensionFunctionType;", "(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)V", "getKey1", "()Ljava/lang/Object;", "getKey2", "getKeys", "()[Ljava/lang/Object;", "[Ljava/lang/Object;", "getPointerInputHandler", "()Lkotlin/jvm/functions/Function2;", "Lkotlin/jvm/functions/Function2;", "create", "equals", "", "other", "hashCode", "", "update", "node", "inspectableProperties", "Landroidx/compose/ui/platform/InspectorInfo;", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class SuspendPointerInputElement extends ModifierNodeElement<SuspendingPointerInputModifierNodeImpl> {
|
|
private final Object key1;
|
|
private final Object key2;
|
|
private final Object[] keys;
|
|
private final Function2<PointerInputScope, Continuation<? super Unit>, Object> pointerInputHandler;
|
|
|
|
public final Object getKey1() {
|
|
return this.key1;
|
|
}
|
|
|
|
public final Object getKey2() {
|
|
return this.key2;
|
|
}
|
|
|
|
public final Object[] getKeys() {
|
|
return this.keys;
|
|
}
|
|
|
|
public final Function2<PointerInputScope, Continuation<? super Unit>, Object> getPointerInputHandler() {
|
|
return this.pointerInputHandler;
|
|
}
|
|
|
|
public /* synthetic */ SuspendPointerInputElement(Object obj, Object obj2, Object[] objArr, Function2 function2, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? null : obj, (i & 2) != 0 ? null : obj2, (i & 4) != 0 ? null : objArr, function2);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public SuspendPointerInputElement(Object obj, Object obj2, Object[] objArr, Function2<? super PointerInputScope, ? super Continuation<? super Unit>, ? extends Object> pointerInputHandler) {
|
|
Intrinsics.checkNotNullParameter(pointerInputHandler, "pointerInputHandler");
|
|
this.key1 = obj;
|
|
this.key2 = obj2;
|
|
this.keys = objArr;
|
|
this.pointerInputHandler = pointerInputHandler;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void inspectableProperties(InspectorInfo inspectorInfo) {
|
|
Intrinsics.checkNotNullParameter(inspectorInfo, "<this>");
|
|
inspectorInfo.setName("pointerInput");
|
|
inspectorInfo.getProperties().set("key1", this.key1);
|
|
inspectorInfo.getProperties().set("key2", this.key2);
|
|
inspectorInfo.getProperties().set("keys", this.keys);
|
|
inspectorInfo.getProperties().set("pointerInputHandler", this.pointerInputHandler);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public SuspendingPointerInputModifierNodeImpl create() {
|
|
return new SuspendingPointerInputModifierNodeImpl(this.pointerInputHandler);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void update(SuspendingPointerInputModifierNodeImpl node) {
|
|
Intrinsics.checkNotNullParameter(node, "node");
|
|
node.setPointerInputHandler(this.pointerInputHandler);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public boolean equals(Object other) {
|
|
if (this == other) {
|
|
return true;
|
|
}
|
|
if (!(other instanceof SuspendPointerInputElement)) {
|
|
return false;
|
|
}
|
|
SuspendPointerInputElement suspendPointerInputElement = (SuspendPointerInputElement) other;
|
|
if (!Intrinsics.areEqual(this.key1, suspendPointerInputElement.key1) || !Intrinsics.areEqual(this.key2, suspendPointerInputElement.key2)) {
|
|
return false;
|
|
}
|
|
Object[] objArr = this.keys;
|
|
if (objArr != null) {
|
|
Object[] objArr2 = suspendPointerInputElement.keys;
|
|
if (objArr2 == null || !Arrays.equals(objArr, objArr2)) {
|
|
return false;
|
|
}
|
|
} else if (suspendPointerInputElement.keys != null) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public int hashCode() {
|
|
Object obj = this.key1;
|
|
int hashCode = (obj != null ? obj.hashCode() : 0) * 31;
|
|
Object obj2 = this.key2;
|
|
int hashCode2 = (hashCode + (obj2 != null ? obj2.hashCode() : 0)) * 31;
|
|
Object[] objArr = this.keys;
|
|
return hashCode2 + (objArr != null ? Arrays.hashCode(objArr) : 0);
|
|
}
|
|
}
|