java.lang.Object
com.cryptoalgo.oursql.model.Context
A pseudo-singleton for storing global application state.
-
Field Summary
Modifier and TypeFieldDescriptionA shared SHA-256 hashing instance to be used throughout the applicationA shared preferences node for general application pref storage -
Constructor Summary
-
Method Summary
-
Field Details
-
prefs
A shared preferences node for general application pref storage -
hashInstance
A shared SHA-256 hashing instance to be used throughout the application
-
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
getInstance
Get a shared context instance. This method is present to conform to the singleton pattern.- Returns:
- An instance of
Context
-