Storage

Inheritance: java.lang.Object

public final class Storage

Represents a temporary data storage for WebDocument.

Constructors

Constructor Description
Storage()

Methods

Method Description
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:

Parameter Type Description
key java.lang.String Key for the value.
value TValue Value.

get(String key)

public final TValue <TValue>get(String key)

Gets the data from the storage.

Parameters:

Parameter Type Description
key java.lang.String Key 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:

Parameter Type Description
key java.lang.String Key of the value.

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