abstract fun <T : Any> getAttribute(key: Attribute<T>): T
Returns the value of an attribute found in this container, or null if this container doesn't have it.
null
- the type of the attribute
key - the attribute key
key
Return the attribute value, or null if not found