Package it.tidalwave.role
Interface PlainTextRenderable
-
- All Superinterfaces:
StringRenderable
- 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 interface PlainTextRenderable extends StringRenderable
The role of an object that can be rendered into aString
as plain text. Note that while it has a method with the same signature asStringRenderable
, it has modified semantics since it guarantees that the returned string is a plain text.- Author:
- Fabrizio Giudici
- Stereotype:
- Role
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<PlainTextRenderable>
_PlainTextRenderable_
-
Fields inherited from interface it.tidalwave.role.StringRenderable
_StringRenderable_
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
renderTo(java.io.PrintWriter printWriter, java.lang.Object... args)
Renders the attached object printing to aPrintWriter
.default void
renderTo(java.lang.StringBuilder stringBuilder, java.lang.Object... args)
Renders the attached object appending to aStringBuilder
.-
Methods inherited from interface it.tidalwave.role.StringRenderable
render
-
-
-
-
Field Detail
-
_PlainTextRenderable_
static final java.lang.Class<PlainTextRenderable> _PlainTextRenderable_
-
-
Method Detail
-
renderTo
default void renderTo(@Nonnull java.lang.StringBuilder stringBuilder, @Nonnull java.lang.Object... args)
Description copied from interface:StringRenderable
Renders the attached object appending to aStringBuilder
. The method accepts optional parameters that can be used to control the format of the rendering; they are usually specific of the object attached to this role.- Specified by:
renderTo
in interfaceStringRenderable
- Parameters:
stringBuilder
- theStringBuilder
to append toargs
- optional rendering parameters- Since:
- 3.2-ALPHA-1 (was previously on
Feedback8
-
renderTo
default void renderTo(@Nonnull java.io.PrintWriter printWriter, @Nonnull java.lang.Object... args)
Description copied from interface:StringRenderable
Renders the attached object printing to aPrintWriter
. The method accepts optional parameters that can be used to control the format of the rendering; they are usually specific of the object attached to this role.- Specified by:
renderTo
in interfaceStringRenderable
- Parameters:
printWriter
- thePrintWriter
to print toargs
- optional rendering parameters- Since:
- 3.2-ALPHA-1 (was previously on
Feedback8
-
-