fi.pelam.csv.cell

DoubleCell

final case class DoubleCell(cellKey: CellKey, value: Double)(implicit formatter: DoubleCell.NumberFormatter = DoubleCell.defaultFormatter) extends Cell with Product with Serializable

See documentation on IntegerCell. This is basically same, but with Double instead of Int.

Source
DoubleCell.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, Cell, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DoubleCell
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Cell
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DoubleCell(cellKey: CellKey, value: Double)(implicit formatter: DoubleCell.NumberFormatter = DoubleCell.defaultFormatter)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. val cellKey: CellKey

    Each cell directly contains information about its coordinates in the CSV data.

    Each cell directly contains information about its coordinates in the CSV data.

    The rationale is that this makes processing streams of cells simpler and allows for detecting many types of errors. Also when problems are detected the coordinates of the problematic cell can easily be included in the error messages.

    It is true that in most cases the coordinates of the cell would be known from surrounding data structures. However if we relied solely on that, there would not be an easy uniform way for code operating on cells to know coordinates of each cell.

    Another downside is that cell instances can't be reused in different places in data in style of the flyweight pattern.

    Definition Classes
    DoubleCellCell
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def colIndex: Int

    Shortcut to index in CellKey.colKey

    Shortcut to index in CellKey.colKey

    Definition Classes
    Cell
  8. def colKey: ColKey

    Shortcut to CellKey.colKey

    Shortcut to CellKey.colKey

    Definition Classes
    Cell
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. implicit val formatter: DoubleCell.NumberFormatter

  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. def rowIndex: Int

    Shortcut to index in CellKey.rowKey

    Shortcut to index in CellKey.rowKey

    Definition Classes
    Cell
  18. def rowKey: RowKey

    Shortcut to CellKey.rowKey

    Shortcut to CellKey.rowKey

    Definition Classes
    Cell
  19. def serializedString: String

    The data as it would be represented in CSV file on disk sans quoting.

    The data as it would be represented in CSV file on disk sans quoting.

    Subclasses of this Cell type should provide more meaningful ways of accessing data.

    Definition Classes
    DoubleCellCell
    See also

    IntegerCell

  20. def shortString(): String

    Shorter version of toString to be used in debug table outputs.

    Shorter version of toString to be used in debug table outputs. Should identify cell type and value in small amount of text.

    Definition Classes
    DoubleCellCell
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    Cell → AnyRef → Any
  23. def updatedCellKey(cellKey: CellKey): Cell

    Make a copy of this cell, but with different cell key.

    Make a copy of this cell, but with different cell key.

    Definition Classes
    DoubleCellCell
  24. val value: Double

    The data in possibly more refined form than serializedString depending on the subclass of Cell in question.

    The data in possibly more refined form than serializedString depending on the subclass of Cell in question.

    For example IntegerCell returns Int.

    Definition Classes
    DoubleCellCell
  25. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Cell

Inherited from AnyRef

Inherited from Any

Ungrouped