For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

Transformer

interface Transformer<OUT, IN>(source)

A Transformer transforms objects of type.

Implementations are free to return new objects or mutate the incoming value.

Since

0.7

Parameters

<OUT>

The type the value is transformed to.

<IN>

The type of the value to be transformed.

Functions

Link copied to clipboard
abstract fun transform(in: IN): OUT
Transforms the given object, and returns the transformed value.