gradle
8.5

# NameMatcher

open class NameMatcher(source)

### Deprecated

This class is only here to maintain binary compatibility with existing plugins.

#### Deprecated

Will be removed in Gradle 9.0.

## Constructors

NameMatcher
Link copied to clipboard
constructor()

## Properties

candidates
Link copied to clipboard
val candidates: Set<String>

## Functions

find
Link copied to clipboard
open fun find(pattern: String, items: Collection<String>): String
Locates the best match for a camel case pattern in a collection.
open fun <T> find(pattern: String, items: Map<String, out T>): T
Locates the best match for a camel case pattern in a key set of a map and returns the corresponding value.
formatErrorMessage
Link copied to clipboard
open fun formatErrorMessage(singularItemDescription: String, container: Any): String
Returns a formatted error message describing why the pattern matching failed.
getMatches
Link copied to clipboard
open fun getMatches(): Set<String>
Returns all matches, when there were more than 1.