com.phasmidsoftware.tableparser.core.render.HierarchicalRenderer.BigIntHierarchicalRenderer
See theBigIntHierarchicalRenderer companion object
trait BigIntHierarchicalRenderer extends UntaggedHierarchicalRenderer[BigInt]
A type class responsible for rendering instances of BigInt in a hierarchical structure without additional tagging or specific rendering formats.
This trait extends the functionality provided by UntaggedHierarchicalRenderer, specifically for the type BigInt. It inherits the capability of rendering hierarchical structures while allowing attributes for customization.
Since it extends UntaggedHierarchicalRenderer, it provides a render method to convert a BigInt instance into a Node representation while factoring in additional attributes and style information predefined in UntaggedHierarchicalRenderer.
Example usage:
implicit object BigIntHierarchicalRenderer extends BigIntHierarchicalRenderer
val bigIntInstance: BigInt = BigInt(12345)
val renderedNode: Node = BigIntHierarchicalRenderer.render(bigIntInstance, Map("attr1" -> "value1"))
println(renderedNode) // Node(style, Some("12345"), Map("attr1" -> "value1"))
Attributes
- See also
-
UntaggedHierarchicalRenderer for more details regarding the rendering framework.
- Companion
- object
- Graph
-
- Supertypes
-
trait UntaggedHierarchicalRenderer[BigInt]trait HierarchicalRenderer[BigInt]class Objecttrait Matchableclass Any
- Known subtypes
-
object BigIntHierarchicalRenderer
Members list
In this article