mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-19 04:13:18 +01:00
30 lines
873 B
Java
30 lines
873 B
Java
package org.apache.http.config;
|
|
|
|
import java.util.Locale;
|
|
import java.util.Map;
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
import org.apache.http.annotation.Contract;
|
|
import org.apache.http.annotation.ThreadingBehavior;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Contract(threading = ThreadingBehavior.SAFE)
|
|
/* loaded from: classes11.dex */
|
|
public final class Registry<I> implements Lookup<I> {
|
|
private final Map<String, I> map;
|
|
|
|
public Registry(Map<String, I> map) {
|
|
this.map = new ConcurrentHashMap(map);
|
|
}
|
|
|
|
@Override // org.apache.http.config.Lookup
|
|
public I lookup(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
return this.map.get(str.toLowerCase(Locale.ROOT));
|
|
}
|
|
|
|
public String toString() {
|
|
return this.map.toString();
|
|
}
|
|
}
|