set

operator fun set(key: String, value: String?)

Updates or adds the value of an entry for the given key in the attribute map.

Parameters

key

The key of the entry to update or add.

value

The value of the entry to set


fun set(from: Map<out String, String?>)

First clears the values of all existing attributes values. Then updates or adds the values from the passed in map. Note: attribute keys cannot be removed, only the value can be cleared or set to null.

Return

The builder instance.

Parameters

from

the map to clear