Rabbit-R1/switch port/java/sources/androidx/compose/ui/semantics/AccessibilityAction.java
2024-05-21 17:08:36 -04:00

50 lines
2.6 KiB
Java

package androidx.compose.ui.semantics;
import androidx.exifinterface.media.ExifInterface;
import kotlin.Function;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: SemanticsProperties.kt */
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\n\n\u0002\u0010\b\n\u0002\b\u0002\b\u0007\u0018\u0000*\u000e\b\u0000\u0010\u0001*\b\u0012\u0004\u0012\u00020\u00030\u00022\u00020\u0004B\u0019\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006\u0012\b\u0010\u0007\u001a\u0004\u0018\u00018\u0000¢\u0006\u0002\u0010\bJ\u0013\u0010\u000e\u001a\u00020\u00032\b\u0010\u000f\u001a\u0004\u0018\u00010\u0004H\u0096\u0002J\b\u0010\u0010\u001a\u00020\u0011H\u0016J\b\u0010\u0012\u001a\u00020\u0006H\u0016R\u0015\u0010\u0007\u001a\u0004\u0018\u00018\u0000¢\u0006\n\n\u0002\u0010\u000b\u001a\u0004\b\t\u0010\nR\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\\u0006\u0013"}, d2 = {"Landroidx/compose/ui/semantics/AccessibilityAction;", ExifInterface.GPS_DIRECTION_TRUE, "Lkotlin/Function;", "", "", "label", "", "action", "(Ljava/lang/String;Lkotlin/Function;)V", "getAction", "()Lkotlin/Function;", "Lkotlin/Function;", "getLabel", "()Ljava/lang/String;", "equals", "other", "hashCode", "", "toString", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public final class AccessibilityAction<T extends Function<? extends Boolean>> {
public static final int $stable = 0;
private final T action;
private final String label;
public final T getAction() {
return this.action;
}
public final String getLabel() {
return this.label;
}
public AccessibilityAction(String str, T t) {
this.label = str;
this.action = t;
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof AccessibilityAction)) {
return false;
}
AccessibilityAction accessibilityAction = (AccessibilityAction) other;
return Intrinsics.areEqual(this.label, accessibilityAction.label) && Intrinsics.areEqual(this.action, accessibilityAction.action);
}
public int hashCode() {
String str = this.label;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
T t = this.action;
return hashCode + (t != null ? t.hashCode() : 0);
}
public String toString() {
return "AccessibilityAction(label=" + this.label + ", action=" + this.action + ')';
}
}