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
class StandardCsvRenderer[Long]
trait CsvRenderer[Long]
trait Renderer[Long, String]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Inherited methods

def render(t: Long, attrs: Map[String, String]): String

Renders an object of type T into its string representation. Additional attributes can be specified via a map, but they are not used in the default implementation.

Renders an object of type T into its string representation. Additional attributes can be specified via a map, but they are not used in the default implementation.

Value parameters

attrs

a map of attributes influencing the rendering process; not used in the default implementation.

t

the object of type T to be rendered.

Attributes

Returns

a string representation of the object t.

Inherited from:
StandardCsvRenderer
def render(t: Long): String

Render an instance of T as an O, qualifying the rendering with no attributes.

Render an instance of T as an O, qualifying the rendering with no attributes.

Value parameters

t

a T to be rendered.

Attributes

Returns

an instance of type O.

Inherited from:
Renderer

Inherited fields

Attributes

Inherited from:
StandardCsvRenderer