- key
- the preference key to be added or updated.
- value
- the preference boolean value for the given key.
Type Reason Java.Lang.NullPointerException if the given key is null. Java.Lang.IllegalArgumentException if the given key's length is bigger than MAX_KEY_LENGTH. Java.Lang.IllegalStateException if this node has been removed.
Adds a new preference with a boolean value to this node using the given key and value or updates the value if a preference with the given key already exists.