Interface Renderable

All Known Implementing Classes:
TurboFrame, TurboStream
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Internal public interface Renderable
Functional interface for class which can render to writable.
Since:
3.4.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Optional<io.micronaut.core.io.Writable>
     
  • Method Details

    • render

      @NonNull @NonNull Optional<io.micronaut.core.io.Writable> render()
      Returns:
      An optional Writable if the class can be rendered.