// Generated by Dagger (https://google.github.io/dagger).
package net.letime.lecjoa.di;

import dagger.internal.Factory;
import dagger.internal.Preconditions;
import javax.inject.Provider;
import net.letime.lecjoa.db.AppDatabase;
import net.letime.lecjoa.lecjoaApplication;

public final class AppModule_ProvidesDatabaseFactory implements Factory<AppDatabase> {
  private final AppModule module;

  private final Provider<lecjoaApplication> appProvider;

  public AppModule_ProvidesDatabaseFactory(
      AppModule module, Provider<lecjoaApplication> appProvider) {
    this.module = module;
    this.appProvider = appProvider;
  }

  @Override
  public AppDatabase get() {
    return provideInstance(module, appProvider);
  }

  public static AppDatabase provideInstance(
      AppModule module, Provider<lecjoaApplication> appProvider) {
    return proxyProvidesDatabase(module, appProvider.get());
  }

  public static AppModule_ProvidesDatabaseFactory create(
      AppModule module, Provider<lecjoaApplication> appProvider) {
    return new AppModule_ProvidesDatabaseFactory(module, appProvider);
  }

  public static AppDatabase proxyProvidesDatabase(AppModule instance, lecjoaApplication app) {
    return Preconditions.checkNotNull(
        instance.providesDatabase(app), "Cannot return null from a non-@Nullable @Provides method");
  }
}
