package h4; import java.lang.annotation.Annotation; import java.util.Collections; import java.util.HashMap; import java.util.Map; /* loaded from: classes2.dex */ public final class c { /* renamed from: a, reason: collision with root package name */ private final String f9956a; /* renamed from: b, reason: collision with root package name */ private final Map f9957b; public static final class b { /* renamed from: a, reason: collision with root package name */ private final String f9958a; /* renamed from: b, reason: collision with root package name */ private Map f9959b = null; b(String str) { this.f9958a = str; } public c a() { return new c(this.f9958a, this.f9959b == null ? Collections.emptyMap() : Collections.unmodifiableMap(new HashMap(this.f9959b))); } public b b(Annotation annotation) { if (this.f9959b == null) { this.f9959b = new HashMap(); } this.f9959b.put(annotation.annotationType(), annotation); return this; } } public static b a(String str) { return new b(str); } public static c d(String str) { return new c(str, Collections.emptyMap()); } public String b() { return this.f9956a; } public Annotation c(Class cls) { return (Annotation) this.f9957b.get(cls); } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof c)) { return false; } c cVar = (c) obj; return this.f9956a.equals(cVar.f9956a) && this.f9957b.equals(cVar.f9957b); } public int hashCode() { return (this.f9956a.hashCode() * 31) + this.f9957b.hashCode(); } public String toString() { return "FieldDescriptor{name=" + this.f9956a + ", properties=" + this.f9957b.values() + "}"; } private c(String str, Map map) { this.f9956a = str; this.f9957b = map; } }