Rabbit-R1/android (non root)/java/sources/androidx/work/DataKt.java

31 lines
2 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package androidx.work;
import androidx.exifinterface.media.ExifInterface;
import androidx.work.Data;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: Data.kt */
@Metadata(d1 = {"\u0000$\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\u001a>\u0010\u0000\u001a\u00020\u00012.\u0010\u0002\u001a\u0018\u0012\u0014\b\u0001\u0012\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0006\u0012\u0004\u0018\u00010\u00060\u00040\u0003\"\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0006\u0012\u0004\u0018\u00010\u00060\u0004H\u0086\\u0006\u0002\u0010\u0007\u001a!\u0010\b\u001a\u00020\t\"\n\b\u0000\u0010\n\u0018\u0001*\u00020\u0006*\u00020\u00012\u0006\u0010\u000b\u001a\u00020\u0005H\u0086\\u0006\f"}, d2 = {"workDataOf", "Landroidx/work/Data;", "pairs", "", "Lkotlin/Pair;", "", "", "([Lkotlin/Pair;)Landroidx/work/Data;", "hasKeyWithValueOfType", "", ExifInterface.GPS_DIRECTION_TRUE, "key", "work-runtime_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes2.dex */
public final class DataKt {
public static final Data workDataOf(Pair<String, ? extends Object>... pairs) {
Intrinsics.checkNotNullParameter(pairs, "pairs");
Data.Builder builder = new Data.Builder();
for (Pair<String, ? extends Object> pair : pairs) {
builder.put(pair.getFirst(), pair.getSecond());
}
Data build = builder.build();
Intrinsics.checkNotNullExpressionValue(build, "dataBuilder.build()");
return build;
}
public static final /* synthetic */ <T> boolean hasKeyWithValueOfType(Data data, String key) {
Intrinsics.checkNotNullParameter(data, "<this>");
Intrinsics.checkNotNullParameter(key, "key");
Intrinsics.reifiedOperationMarker(4, ExifInterface.GPS_DIRECTION_TRUE);
return data.hasKeyWithValueOfType(key, Object.class);
}
}