public interface IPersistable
Modifier and Type | Field and Description |
---|---|
static String |
DOT
Separator used for properties.
|
static String |
VALUE_SEPARATOR
Separator used for values.
|
Modifier and Type | Method and Description |
---|---|
void |
loadState(String prefix,
Properties properties)
Restore the state out of the given Properties identified by the specified prefix.
|
void |
saveState(String prefix,
Properties properties)
Saves the state to the given Properties using the specified prefix.
|
static final String DOT
static final String VALUE_SEPARATOR
void saveState(String prefix, Properties properties)
prefix
- The prefix to use for the state keys. Is also used as the state
configuration name.properties
- The Properties instance to save the state to.void loadState(String prefix, Properties properties)
prefix
- The prefix to use for the state keys. Is also used as the state
configuration name.properties
- The Properties instance to load the state from.Copyright © 2013. All Rights Reserved.