Last active
November 7, 2017 19:12
-
-
Save rachitmishra/43249a3554a06b5cefd5e80870381181 to your computer and use it in GitHub Desktop.
dagger-binds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Using `@Binds` to provide concrete implementations | |
*/ | |
@Module | |
abstract class ComputerBinding(private val memorySize: Int, | |
private val vMemorySize: Int) { | |
@Binds | |
abstract fun providesMotherboard(gigabyte: Gigabyte): Motherboard | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment