nsISummary
Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)boolean hasKey(in string key); |
void getKeys(out PRUint32 count, [retval, array, size_is(count)] out string keys); |
nsISupports getValue(in string key); |
void setValue(in string key, in nsISupports value); |
nsISupports deleteValue(in string key); |
void clear(); |
Check if a given key is present in the dictionary.
boolean hasKey(
in string key
);
keytrue if present, false if absent.
Retrieve all keys in the dictionary.
void getKeys(
out PRUint32 count,
[retval, array, size_is(count)] out string keys
);
Array of all keys, unsorted.
Find the value indicated by the key.
nsISupports getValue(
in string key
);
keyThe value associated with the specified key. If the key doesn't exist, NS_ERROR_FAILURE is returned.
Add the key-value pair to the dictionary. If the key is already present, the new value replaces the old one.
void setValue(
in string key,
in nsISupports value
);
keyvalueFind the value indicated by the key.
nsISupports deleteValue(
in string key
);
keyThe removed value. If the key doesn't exist, NS_ERROR_FAILURE will be returned.
Delete all key-value pairs from the dictionary.
void clear();
None.