Storage

Inheritance: java.lang.Object

public final class Storage

Represents a temporary data storage for WebDocument.

Constructors

ConstructorDescription
Storage()

Methods

MethodDescription
put(String key, TValue value)Puts the value into the storage.
get(String key)Gets the data from the storage.
containsKey(String key)Determines whether the storage contains an element with the specified key.

Storage()

public Storage()

put(String key, TValue value)

public final void <TValue>put(String key, TValue value)

Puts the value into the storage.

Parameters:

ParameterTypeDescription
keyjava.lang.StringKey for the value.
valueTValueValue.

get(String key)

public final TValue <TValue>get(String key)

Gets the data from the storage.

Parameters:

ParameterTypeDescription
keyjava.lang.StringKey of the value.

Returns: TValue - Data value if it is presented in the data collection, null otherwise.

containsKey(String key)

public final boolean containsKey(String key)

Determines whether the storage contains an element with the specified key.

Parameters:

ParameterTypeDescription
keyjava.lang.StringKey of the value.

Returns: boolean - True if the storage contains an element with the specified key, false otherwise.