Module storm

Interface TemplateFunction.Context

Enclosing interface:
TemplateFunction
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface TemplateFunction.Context
Context object that provides the ability to inject arguments into the string template.
  • Method Summary

    Modifier and Type
    Method
    Description
    Injects an argument into the underlying string template.
  • Method Details

    • invoke

      String invoke(@Nonnull Object o)
      Injects an argument into the underlying string template. The resulting string, the so-called intermediary string, must be placed directly into the string. It will be replaced by the actual value by the time the template is interpolated.
      Parameters:
      o - the object to inject.
      Returns:
      the intermediary string to be placed into the template.