ircbot

Class SaveState


public class SaveState
extends java.lang.Object

Method Summary

void
add(String id, Object data)
Store data into the state.
Object
get(String id)
Fetch a data object from this state.
void
save(String filename)
void
setModule(String moduleName)

Method Details

add

public void add(String id,
                Object data)
Store data into the state.
Parameters:
id - A unique id that will identify the given data object in this state. The id will be padded with the name of the calling module to avoid name clashes between different modules.
data - The data object to store.

get

public Object get(String id)
Fetch a data object from this state.
Parameters:
id - The unique id that was used to store the data.
Returns:
The data object associated to the given id or null if no such id was found.

save

public void save(String filename)

setModule

public void setModule(String moduleName)