add

abstract fun add(tag: Tag)

Adds the single given tag to this map.

Parameters

tag

Tag to add to this map.

Throws

If adding this new tag would increase the number of tags in this tag map to a value greater than 10.


abstract fun add(vararg tags: Tag)
abstract fun add(vararg tags: Pair<String, String>)

Adds the given tags to this map.

Parameters

tags

Tags to add to this map.

Throws

If the given array of tags contains more than 10 elements.

If adding these new tags would increase the number of tags in this tag map to a value greater than 10.


abstract fun add(tags: Iterable<Tag>)

Adds the given tags to this map.

Parameters

tags

Tags to add to this map.

Throws

If the given iterable of tags contains more than 10 elements.

If adding these new tags would increase the number of tags in this tag map to a value greater than 10.


abstract fun add(tags: Map<String, String>)

Adds the given tags to this map.

Parameters

tags

Tags to add to this map.

Throws

If the given map of tags contains more than 10 elements.

If adding these new tags would increase the number of tags in this tag map to a value greater than 10.


abstract fun add(key: String, value: String)

Adds the given key/value pair as a tag to this map.

See also

Parameters

key

Key for this tag.

value

Value for this tag.

Throws

as per the rules outlined in the Tag docs.

If adding these new tags would increase the number of tags in this tag map to a value greater than 10.