Created
June 4, 2019 17:12
-
-
Save alaershov/174c62a3478133877107e39f5a112a5a to your computer and use it in GitHub Desktop.
Toothpick: user repository with Inject
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
public final class UserRepository { | |
private final SharedPreferences sharedPreferences; | |
@Inject | |
public UserRepository(SharedPreferences sharedPreferences) { | |
this.sharedPreferences = sharedPreferences; | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment