fi.pelam.csv.cell

Cell

abstract class Cell extends AnyRef

Base class for cells used in this CSV library.

The two main APIs of this library the table oriented and the stream oriented use subclasses of this class to represent the data.

One important use for this class is in CsvReader. CsvReader outputs instances of StringCell which is a subclass of this class.

Source
Cell.scala
See also

See the documentation of cellKey member below for design rationale on having coordinates in each cell.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Cell
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Cell()

Abstract Value Members

  1. abstract 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.

  2. abstract 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.

    See also

    IntegerCell

  3. abstract 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.

    The cellKey should not be in the return value.

  4. abstract def updatedCellKey(key: CellKey): Cell

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

  5. abstract def value: Any

    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.

Concrete 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. def clone(): AnyRef

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

    Shortcut to index in CellKey.colKey

  7. def colKey: ColKey

    Shortcut to CellKey.colKey

  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    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

  18. def rowKey: RowKey

    Shortcut to CellKey.rowKey

  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  20. def toString(): String

    Definition Classes
    Cell → AnyRef → Any
  21. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped