package f7;

import android.util.SparseArray;
import com.google.android.datatransport.Priority;
import com.google.android.gms.measurement.internal.u1;
import java.util.HashMap;

/* JADX INFO: loaded from: classes2.dex */
public abstract class a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final SparseArray f25951a = new SparseArray();

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final HashMap f25952b;

    static {
        HashMap map = new HashMap();
        f25952b = map;
        map.put(Priority.f7714a, 0);
        map.put(Priority.f7715b, 1);
        map.put(Priority.f7716c, 2);
        for (Priority priority : map.keySet()) {
            f25951a.append(((Integer) f25952b.get(priority)).intValue(), priority);
        }
    }

    public static int a(Priority priority) {
        Integer num = (Integer) f25952b.get(priority);
        if (num != null) {
            return num.intValue();
        }
        throw new IllegalStateException("PriorityMapping is missing known Priority value " + priority);
    }

    public static Priority b(int i10) {
        Priority priority = (Priority) f25951a.get(i10);
        if (priority != null) {
            return priority;
        }
        throw new IllegalArgumentException(u1.g("Unknown Priority for value ", i10));
    }
}
