44 lines
1.2 KiB
Java
44 lines
1.2 KiB
Java
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<C15247glb> {
|
|
private final List<C15247glb> a = new LinkedList();
|
|
private final Map<String, List<C15247glb>> b = new HashMap();
|
|
|
|
public final C15247glb a(String str) {
|
|
List<C15247glb> 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<C15247glb> 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<C15247glb> list = this.b.get(lowerCase);
|
|
if (list == null) {
|
|
list = new LinkedList<>();
|
|
this.b.put(lowerCase, list);
|
|
}
|
|
list.add(c15247glb);
|
|
this.a.add(c15247glb);
|
|
}
|
|
}
|