abstract fun <T : Any> attribute(key: Attribute<T>, value: T): AttributeContainer
Sets an attribute value. It is not allowed to use null as an attribute value.
null
- the type of the attribute
key - the attribute key
key
value - the attribute value
value
Return this container