api / org.gradle.api.attributes / AttributeContainer / contains

contains

abstract fun contains(key: Attribute<*>): Boolean

Tells if a specific attribute is found in this container.

Parameters

key - the key of the attribute

Return
true if this attribute is found in this container.