info.fingo.spata.text.StringRenderer
See theStringRenderer companion object
Renderer from provided type to String
. It is similar to toString
, although it should handle nulls and unwrap Option
content.
This renderer defines behavior to be implemented by concrete, given renderer instances for various types, used by render function from StringRenderer object.
Renderer's contravariance allows limiting givens to parent types if subclasses are formatted in the same way.
If the input is null, all provided given implementations return empty string as rendering result. If the input is a scala.Option, provided given instances render its content if or return empty string.
Type parameters
- A
-
source type for rendering
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object booleanRendererFmt.typeobject doubleRendererFmt.typeobject longRendererFmt.typeobject numberRendererFmt.typeobject temporalRendererFmt.typeobject intRenderer.typeobject stringRenderer.type
Members list
In this article