Interface TemplateSet.IndexableRenderable<T>

Type Parameters:
T - the type of the value to render
All Superinterfaces:
TemplateSet.Renderable<T>
Enclosing interface:
TemplateSet

public static interface TemplateSet.IndexableRenderable<T> extends TemplateSet.Renderable<T>

A particular TemplateSet.Renderable with the ability to expose the index of the value in a group of elements to the renderer (eg. an array, an iterable, a stream, a publisher...).

Since:
1.2
Author:
Jeremy Kuhn
  • Method Details

    • render

      Renders a value using the specified renderer accepting the value and its index.

      Parameters:
      renderer - the renderer to invoke
      Returns:
      a future which completes once the renderer is done rendering data to the output