implicit object CsvRendererDouble extends StandardCsvRenderer[Double]
CsvRendererDouble is an implicit object that provides a mechanism to render instances
of type Double into a CSV (Comma-Separated Values) format. It extends the
StandardCsvRenderer abstract class, inheriting its generic rendering capabilities,
and specializes the functionality for Double values.
This implicit object allows seamless and type-safe rendering of Doubles into strings
formatted for CSV output by leveraging Scala's implicit resolution mechanism.
Example usage:
import CsvRenderers._ val value: Double = 123.456 val renderedValue: String = CsvRendererDouble.render(value) println(renderedValue) // Output: "123.456"
The CsvRendererDouble relies on the default implementation of render in the
StandardCsvRenderer class, where the Double is converted to its string
representation. Custom attributes influencing the rendering may be passed via a map,
though they are unused in the default implementation.
- See also
com.phasmidsoftware.tableparser.core.render.StandardCsvRenderer
- Alphabetic
- By Inheritance
- CsvRendererDouble
- StandardCsvRenderer
- CsvRenderer
- Renderer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val csvAttributes: CsvAttributes
- Definition Classes
- StandardCsvRenderer → CsvRenderer
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def render(t: Double, attrs: Map[String, String]): String
Renders an object of type
Tinto its string representation.Renders an object of type
Tinto its string representation. Additional attributes can be specified via a map, but they are not used in the default implementation.- t
the object of type
Tto be rendered.- attrs
a map of attributes influencing the rendering process; not used in the default implementation.
- returns
a string representation of the object
t.
- Definition Classes
- StandardCsvRenderer → Renderer
- def render(t: Double): 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.
- t
a T to be rendered.
- returns
an instance of type O.
- Definition Classes
- Renderer
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)