package o; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Locale; import java.util.Map; /* loaded from: classes6.dex */ public final class gkW implements Iterable { private final List a = new LinkedList(); private final Map> b = new HashMap(); public final C15247glb a(String str) { List list = this.b.get(str.toLowerCase(Locale.ROOT)); if (list == null || list.isEmpty()) { return null; } return list.get(0); } @Override // java.lang.Iterable public final Iterator iterator() { return Collections.unmodifiableList(this.a).iterator(); } public final String toString() { return this.a.toString(); } public final void e(C15247glb c15247glb) { String lowerCase = c15247glb.d.toLowerCase(Locale.ROOT); List list = this.b.get(lowerCase); if (list == null) { list = new LinkedList<>(); this.b.put(lowerCase, list); } list.add(c15247glb); this.a.add(c15247glb); } }