Abstract
Abstract
clearRetrieves a integer from storage. The default implementation gets the value as string and uses parseInt to convert it back to an integer.
Key to get integer for
Default value to use
parsed integer or aDefault if there is no item or parsing resulted in a NaN value.
Retrieves a number from storage. The default implementation gets the value as string and uses parseFloat to convert it back to a number.
Key to get value for
Default value to use
parsed number or aDefault if there is no item or parsing resulted in a NaN value.
Retrieves an object from storage. The default implementation gets a string using getString and uses JSON.parse to convert a string back to an object.
Key to retrieve object for
Default value to use
parsed object or aDefault if there is no item or an exception occurred while parsing the string.
Abstract
getAbstract
hasAbstract
removeAbstract
set
A base class for storage classes that store values together with keys. A subclass must implement the following methods: setString, getString, remove, has and clear.