CsvRendererLong
com.phasmidsoftware.tableparser.core.render.CsvRenderers.CsvRendererLong
object CsvRendererLong extends StandardCsvRenderer[Long]
Implicit object CsvRendererLong provides a StandardCsvRenderer implementation specifically for the Long type.
This renderer is used to convert Long values into their CSV (Comma-Separated Values) string representation. It extends the StandardCsvRenderer abstract class, which defines a default rendering mechanism by converting the input object to its String representation.
As an implicit object, CsvRendererLong can be automatically applied wherever a StandardCsvRenderer[Long] is required in the context of CSV rendering operations, such as serializing data of type Long into CSV format.
Example usage:
implicit val csvAttributes: CsvAttributes = CsvAttributes() // Example of CSV configuration
val longValue: Long = 123456789L
val csvString: String = CsvRendererLong.render(longValue, Map.empty) // "123456789"
Note: Additional attributes passed in the Map parameter to the render method are supported but not utilized in this implementation.
Attributes
- Graph
-
- Supertypes
- Self type
-
CsvRendererLong.type
Members list
In this article