- java.lang.Object
-
- csbase.server.services.restservice.websocket.utils.PersistentObject<T>
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
get
public T get()
- Returns:
- the object beign persisted
-
getPath
public String getPath()
- Returns:
- the path of the file used to persist the given object
-
save
public boolean save()
- Returns:
- true if the file was saved successfully
-
load
public boolean load()
- Returns:
- true if the object was loaded from the specified path, otherwise
false.
Copyright © 2019. All rights reserved.