api / org.gradle.api / Transformer

Transformer

interface Transformer<OUT : Any, IN : Any>

A Transformer transforms objects of type.

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

Parameters

- The type the value is transformed to.

- The type of the value to be transformed.

Functions

transform

abstract fun transform(in: IN): OUT

Transforms the given object, and returns the transformed value.