Created
February 7, 2022 22:51
-
-
Save victorbrndls/a87d7d59b5050c85058c57a485e3b60e to your computer and use it in GitHub Desktop.
This file contains 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
@NonNull | |
synchronized FirebaseFirestore get(@NonNull String databaseId) { | |
FirebaseFirestore firestore = instances.get(databaseId); | |
if (firestore == null) { | |
firestore = FirebaseFirestore.newInstance(...); | |
instances.put(databaseId, firestore); | |
} | |
return firestore; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment