
T - the type of object being serializedpublic interface PersistenceBackedObject<T> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Returns whether the intended persistence location is already populated.
|
String |
getPath()
Returns the path to the intended persistence location.
|
T |
newInstance(TreeLogger logger)
Constructs and returns a new instance of the object stored at the path.
|
void |
set(TreeLogger logger,
T object)
Serializes the provided object to the intended path.
|
boolean exists()
String getPath()
T newInstance(TreeLogger logger) throws UnableToCompleteException
UnableToCompleteException - if the backing store does not contain an object of type
Tvoid set(TreeLogger logger, T object) throws IllegalStateException, UnableToCompleteException
UnableToCompleteException - if the object could not be serializedIllegalStateExceptionCopyright © 2018. All rights reserved.