// Generated by dagger.internal.codegen.ComponentProcessor (https://google.github.io/dagger).
package com.sample.sample.modules;

import android.content.Context;
import dagger.internal.Factory;
import dagger.internal.Preconditions;
import javax.inject.Provider;
import okhttp3.Cache;

public final class AppModule_ProvidesOkHttpCacheFactory implements Factory<Cache> {
  private final AppModule module;

  private final Provider<Context> contextProvider;

  public AppModule_ProvidesOkHttpCacheFactory(AppModule module, Provider<Context> contextProvider) {
    assert module != null;
    this.module = module;
    assert contextProvider != null;
    this.contextProvider = contextProvider;
  }

  @Override
  public Cache get() {
    return Preconditions.checkNotNull(
        module.providesOkHttpCache(contextProvider.get()),
        "Cannot return null from a non-@Nullable @Provides method");
  }

  public static Factory<Cache> create(AppModule module, Provider<Context> contextProvider) {
    return new AppModule_ProvidesOkHttpCacheFactory(module, contextProvider);
  }

  /** Proxies {@link AppModule#providesOkHttpCache(Context)}. */
  public static Cache proxyProvidesOkHttpCache(AppModule instance, Context context) {
    return instance.providesOkHttpCache(context);
  }
}
