gradle
8.4

# getMatchingStrategy

abstract fun <T> getMatchingStrategy(attribute: Attribute<T>): AttributeMatchingStrategy<T>(source)

Returns the matching strategy for a given attribute.

#### Return

the matching strategy for this attribute.

#### Parameters

attribute

the attribute

<T>

the type of the attribute

#### Throws

IllegalArgumentException

When no strategy is available for the given attribute.