Rabbit-R1/switch port/java/sources/androidx/compose/ui/modifier/ModifierLocalProvider.java

53 lines
3 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package androidx.compose.ui.modifier;
import androidx.compose.ui.Modifier;
import androidx.exifinterface.media.ExifInterface;
import kotlin.Metadata;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: ModifierLocalProvider.kt */
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\bg\u0018\u0000*\u0004\b\u0000\u0010\u00012\u00020\u0002R\u0018\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006R\u0012\u0010\u0007\u001a\u00028\u0000X¦\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\\u0001\u0000\u0082\u0002\u0006\n\u0004\b!0\u0001¨\u0006\\u0006\u0003"}, d2 = {"Landroidx/compose/ui/modifier/ModifierLocalProvider;", ExifInterface.GPS_DIRECTION_TRUE, "Landroidx/compose/ui/Modifier$Element;", "key", "Landroidx/compose/ui/modifier/ProvidableModifierLocal;", "getKey", "()Landroidx/compose/ui/modifier/ProvidableModifierLocal;", "value", "getValue", "()Ljava/lang/Object;", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public interface ModifierLocalProvider<T> extends Modifier.Element {
ProvidableModifierLocal<T> getKey();
T getValue();
/* compiled from: ModifierLocalProvider.kt */
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public static final class DefaultImpls {
@Deprecated
public static <T> boolean all(ModifierLocalProvider<T> modifierLocalProvider, Function1<? super Modifier.Element, Boolean> predicate) {
Intrinsics.checkNotNullParameter(predicate, "predicate");
return ModifierLocalProvider.super.all(predicate);
}
@Deprecated
public static <T> boolean any(ModifierLocalProvider<T> modifierLocalProvider, Function1<? super Modifier.Element, Boolean> predicate) {
Intrinsics.checkNotNullParameter(predicate, "predicate");
return ModifierLocalProvider.super.any(predicate);
}
@Deprecated
public static <T, R> R foldIn(ModifierLocalProvider<T> modifierLocalProvider, R r, Function2<? super R, ? super Modifier.Element, ? extends R> operation) {
Intrinsics.checkNotNullParameter(operation, "operation");
return (R) ModifierLocalProvider.super.foldIn(r, operation);
}
@Deprecated
public static <T, R> R foldOut(ModifierLocalProvider<T> modifierLocalProvider, R r, Function2<? super Modifier.Element, ? super R, ? extends R> operation) {
Intrinsics.checkNotNullParameter(operation, "operation");
return (R) ModifierLocalProvider.super.foldOut(r, operation);
}
@Deprecated
public static <T> Modifier then(ModifierLocalProvider<T> modifierLocalProvider, Modifier other) {
Intrinsics.checkNotNullParameter(other, "other");
return ModifierLocalProvider.super.then(other);
}
}
}