Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.savvasdalkitsis.jtmdb;
 
 
This interface provides a mechanism with which the state of GeneralSettings can be saved and restored. Implementations of this interface can save and restore the state to mediums such as a file, a network, a database.

Author(s):
Savvas Dalkitsis
public interface GeneralSettingsState {

This method stores the API key.

Parameters:
apiKey The API key.
	public void storeAPIKey(String apiKey);

This method stores the log stream.

Parameters:
logStream The log stream.
	public void storeLogStream(PrintStream logStream);

This method stores the log enabled flag.

Parameters:
logEnabled The log enabled flag.
	public void storeLogEnabled(boolean logEnabled);

This method stores the verbosity of the log.

Parameters:
logVerbosity The verbosity of the log.
	public void storeLogVerbosity(Verbosity logVerbosity);

This method stores the locale of the API.

Parameters:
apiLocale The locale of the API.
	public void storeAPILocale(Locale apiLocale);

This method restores the API key.

Returns:
The API key.
	public String restoreAPIKey();

This method restores the log stream.

Returns:
The log stream.
This method restores the log enabled flag.

Parameters:
logEnabled The log enabled flag.
	public boolean restoreLogEnabled();

This method restores the verbosity of the log.

Parameters:
logVerbosity The verbosity of the log.
This method restores the locale of the API.

Parameters:
apiLocale The locale of the API.
New to GrepCode? Check out our FAQ X