Rabbit-R1/switch port/java/sources/androidx/compose/ui/focus/FocusRequesterElement.java

77 lines
4.4 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package androidx.compose.ui.focus;
import androidx.compose.ui.node.ModifierNodeElement;
import androidx.compose.ui.platform.InspectorInfo;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: FocusRequesterModifier.kt */
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\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\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\b\u0082\b\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\t\u0010\b\u001a\u00020\u0004HÆ\u0003J\u0013\u0010\t\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u0004HÆ\u0001J\b\u0010\n\u001a\u00020\u0002H\u0016J\u0013\u0010\u000b\u001a\u00020\f2\b\u0010\r\u001a\u0004\u0018\u00010\u000eHÖ\u0003J\t\u0010\u000f\u001a\u00020\u0010HÖ\u0001J\t\u0010\u0011\u001a\u00020\u0012HÖ\u0001J\u0010\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u0002H\u0016J\f\u0010\u0016\u001a\u00020\u0014*\u00020\u0017H\u0016R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007¨\u0006\u0018"}, d2 = {"Landroidx/compose/ui/focus/FocusRequesterElement;", "Landroidx/compose/ui/node/ModifierNodeElement;", "Landroidx/compose/ui/focus/FocusRequesterNode;", "focusRequester", "Landroidx/compose/ui/focus/FocusRequester;", "(Landroidx/compose/ui/focus/FocusRequester;)V", "getFocusRequester", "()Landroidx/compose/ui/focus/FocusRequester;", "component1", "copy", "create", "equals", "", "other", "", "hashCode", "", "toString", "", "update", "", "node", "inspectableProperties", "Landroidx/compose/ui/platform/InspectorInfo;", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
final /* data */ class FocusRequesterElement extends ModifierNodeElement<FocusRequesterNode> {
private final FocusRequester focusRequester;
public static /* synthetic */ FocusRequesterElement copy$default(FocusRequesterElement focusRequesterElement, FocusRequester focusRequester, int i, Object obj) {
if ((i & 1) != 0) {
focusRequester = focusRequesterElement.focusRequester;
}
return focusRequesterElement.copy(focusRequester);
}
/* renamed from: component1, reason: from getter */
public final FocusRequester getFocusRequester() {
return this.focusRequester;
}
public final FocusRequesterElement copy(FocusRequester focusRequester) {
Intrinsics.checkNotNullParameter(focusRequester, "focusRequester");
return new FocusRequesterElement(focusRequester);
}
@Override // androidx.compose.ui.node.ModifierNodeElement
public boolean equals(Object other) {
if (this == other) {
return true;
}
return (other instanceof FocusRequesterElement) && Intrinsics.areEqual(this.focusRequester, ((FocusRequesterElement) other).focusRequester);
}
public final FocusRequester getFocusRequester() {
return this.focusRequester;
}
@Override // androidx.compose.ui.node.ModifierNodeElement
public int hashCode() {
return this.focusRequester.hashCode();
}
public String toString() {
return "FocusRequesterElement(focusRequester=" + this.focusRequester + ')';
}
public FocusRequesterElement(FocusRequester focusRequester) {
Intrinsics.checkNotNullParameter(focusRequester, "focusRequester");
this.focusRequester = focusRequester;
}
@Override // androidx.compose.ui.node.ModifierNodeElement
public FocusRequesterNode create() {
return new FocusRequesterNode(this.focusRequester);
}
@Override // androidx.compose.ui.node.ModifierNodeElement
public void update(FocusRequesterNode node) {
Intrinsics.checkNotNullParameter(node, "node");
node.getFocusRequester().getFocusRequesterNodes$ui_release().remove(node);
node.setFocusRequester(this.focusRequester);
node.getFocusRequester().getFocusRequesterNodes$ui_release().add(node);
}
@Override // androidx.compose.ui.node.ModifierNodeElement
public void inspectableProperties(InspectorInfo inspectorInfo) {
Intrinsics.checkNotNullParameter(inspectorInfo, "<this>");
inspectorInfo.setName("focusRequester");
inspectorInfo.getProperties().set("focusRequester", this.focusRequester);
}
}