org.gradle.api
Class Named.Namer
java.lang.Object
org.gradle.api.Named.Namer
- All Implemented Interfaces:
- Namer<Named>
- Enclosing interface:
- Named
public static class Named.Namer
- extends Object
- implements Namer<Named>
An implementation of the namer interface for objects implementing the named interface.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Named.Namer
public Named.Namer()
determineName
public String determineName(Named object)
- Description copied from interface:
Namer
- Determines the name of the given object.
- Specified by:
determineName
in interface Namer<Named>
- Parameters:
object
- The object to determine the name of
- Returns:
- The object's inherent name. Never null.
forType
public static <T> Namer<T> forType(Class<T> type)