FormattedStringRenderer
info.fingo.spata.text.FormattedStringRenderer
trait FormattedStringRenderer[-A, B] extends StringRenderer[A]
Renderer from provided type to String with support for different formats.
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, using the same formatter type.
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
- B
-
type of formatter
Attributes
- Graph
-
- Supertypes
- Known subtypes
-
object booleanRendererFmt.typeobject doubleRendererFmt.typeobject longRendererFmt.typeobject numberRendererFmt.typeobject temporalRendererFmt.type
Members list
In this article