CURRENT_USER_KEY
Constructor and Description |
---|
SharedPrefsUserStore(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
Collection<User> |
allUsers()
Returns a collection of all users saved in the User store.
|
User |
get(String key)
Retrieves the
User with the given key. |
User |
put(String key,
User user)
Saves a
User object under the given key. |
User |
remove(String key)
Removes the user with the given key from the store.
|
public SharedPrefsUserStore(android.content.Context context)
public User put(String key, User user)
User
object under the given key. If another user already exists, it will be replaced.public Collection<User> allUsers()