alexandroid/decompiled/jadx/sources/dagger/internal/AbstractMapFactory.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

43 lines
1.5 KiB
Java

package dagger.internal;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.inject.Provider;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes9.dex */
abstract class AbstractMapFactory<K, V, V2> implements Factory<Map<K, V2>> {
private final Map<K, Provider<V>> contributingMap;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
public static abstract class Builder<K, V, V2> {
final LinkedHashMap<K, Provider<V>> map;
public Builder(int i) {
this.map = DaggerCollections.newLinkedHashMapWithExpectedSize(i);
}
/* JADX WARN: Multi-variable type inference failed */
public Builder<K, V, V2> put(K k, Provider<V> provider) {
this.map.put(Preconditions.checkNotNull(k, "key"), Preconditions.checkNotNull(provider, "provider"));
return this;
}
public Builder<K, V, V2> putAll(Provider<Map<K, V2>> provider) {
if (provider instanceof DelegateFactory) {
return putAll(((DelegateFactory) provider).getDelegate());
}
this.map.putAll(((AbstractMapFactory) provider).contributingMap);
return this;
}
}
public AbstractMapFactory(Map<K, Provider<V>> map) {
this.contributingMap = Collections.unmodifiableMap(map);
}
public final Map<K, Provider<V>> contributingMap() {
return this.contributingMap;
}
}