plus

fun <T> plus(key: AttributeKey<T>, value: T): AttributeContainer

Returns a new AttributeContainer with the specified key mapped to the value.


operator fun <T> plus(pair: <Error class: unknown class><AttributeKey<T>, T>): AttributeContainer

Returns a new AttributeContainer with the specified key-value pair.


Returns a new AttributeContainer containing all attributes from this and the other. If keys collide, values from other take precedence (overwrite).