gradle
8.4

# MultipleCandidatesDetails

interface MultipleCandidatesDetails<T>(source)

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

#### Parameters

<T>

the concrete type of the attribute

## Functions

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