public class LocalPreservable<S> extends Object implements Preservable<S>
| Constructor and Description |
|---|
LocalPreservable() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,S> |
getAllSaveElement(Long personId) |
Optional<S> |
getByKey(Long personId,
String key) |
void |
save(Long personId,
String key,
S save)
Сохранение данных для пользователя
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpushpublic void save(Long personId, String key, S save)
Preservablesave in interface Preservable<S>personId - Идентификатор пользователяsave - Объект данныхpublic Optional<S> getByKey(Long personId, String key)
getByKey in interface Preservable<S>public Map<String,S> getAllSaveElement(Long personId)
getAllSaveElement in interface Preservable<S>Copyright © 2020. All rights reserved.