Dagger 2 @Binds vs @Provides

Beginning Dagger 2.12 (sorry, I know it's quite some time back.. but still worth understanding it), there’s this new feature called @Binds added to Daggers. There are already some blogs about it. However, reading them still makes me wonder what advantage it has to the old faithful @Provides that we have in our modules.

As my goal is to make things as clear as possible, I’m writing this after making my own…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store