package ab;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.lang.annotation.Annotation;
import java.util.Collections;
import java.util.Map;

/* JADX INFO: loaded from: classes2.dex */
public final class b {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f418a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Map f419b;

    public b(String str, Map map) {
        this.f418a = str;
        this.f419b = map;
    }

    public static b a(String str) {
        return new b(str, Collections.emptyMap());
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof b)) {
            return false;
        }
        b bVar = (b) obj;
        return this.f418a.equals(bVar.f418a) && this.f419b.equals(bVar.f419b);
    }

    @Nullable
    public <T extends Annotation> T getProperty(@NonNull Class<T> cls) {
        return (T) this.f419b.get(cls);
    }

    public final int hashCode() {
        return this.f419b.hashCode() + (this.f418a.hashCode() * 31);
    }

    public final String toString() {
        return "FieldDescriptor{name=" + this.f418a + ", properties=" + this.f419b.values() + "}";
    }
}
