attribute

abstract fun <T> attribute(key: Attribute<T>, value: T): AttributeContainer(source)

Sets an attribute value. It is not allowed to use null as an attribute value.

Return

this container

Parameters

<T>

the type of the attribute

key

the attribute key

value

the attribute value