api / org.gradle.api / Namer

Namer

interface Namer<T : Any>

A namer is capable of providing a name based on some inherent characteristic of an object.

Parameters

- The type of object that the namer can name

Types

Comparator

open class Comparator<T : Any> : Comparator<T>

A comparator implementation based on the names returned by the given namer.

Functions

determineName

abstract fun determineName(object: T): String

Determines the name of the given object.

Inheritors

Namer

open class Namer : Namer<Configuration>

A org.gradle.api.Namer namer for configurations that returns #getName().

Namer

open class Namer : Namer<Task>

A org.gradle.api.Namer namer for tasks that returns #getName().

Namer

open class Namer : Namer<Named>

An implementation of the namer interface for objects implementing the named interface.