Module java.base
Package java.lang

Interface StringTemplate.Processor.Linkage

All Known Implementing Classes:
FormatProcessorPREVIEW
Enclosing interface:
StringTemplate.ProcessorPREVIEW<R,E extends Throwable>

public static sealed interface StringTemplate.Processor.Linkage permits FormatProcessorPREVIEW
Linkage is a preview API of the Java platform.
Programs can only use Linkage when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Built-in policies using this additional interface have the flexibility to specialize the composition of the templated string by returning a customized MethodHandle from linkage. These specializations are typically implemented to improve performance; specializing value types or avoiding boxing and vararg arrays.
Implementation Note:
This interface is sealed to only allow standard processors.
Sealed Class Hierarchy Graph:
Sealed class hierarchy graph for LinkageSealed class hierarchy graph for Linkage
Since:
21