Sets and validates and persists the value of the preferences with the given type.
Syntax
public
void
setIntPreference
(
String
key
,
int
value
) throws SDMPreferencesException
Parameters
-
key –
The key of the preference
-
value –
The new value of the preference
Exceptions
-
SDMPreferencesException class –
if the new value of the preference is invalid for any reasons