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

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

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.
Link copied to clipboard
open fun formatErrorMessage(singularItemDescription: String, container: Any): String
Returns a formatted error message describing why the pattern matching failed.
Link copied to clipboard
open fun getMatches(): Set<String>
Returns all matches, when there were more than 1.