For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

MultipleCandidatesDetails

Provides context about candidates for an attribute. In particular, this class gives access to the list of candidates on the producer side.

Since

3.3

Parameters

<T>

the concrete type of the attribute

Functions

Link copied to clipboard
abstract fun closestMatch(candidate: T)
Calling this method indicates that the candidate is the closest match.
Link copied to clipboard
abstract fun getCandidateValues(): Set<T>
A set of candidate values.
Link copied to clipboard
@Nullable
abstract fun getConsumerValue(): @Nullable T
Returns the value of the attribute specified by the consumer.