fi.pelam.csv.cell

IntegerCell

final case class IntegerCell(cellKey: CellKey, value: Int)(implicit formatter: IntegerCell.NumberFormatter = IntegerCell.defaultFormatter) extends Cell with NumberCell[Int] with Product with Serializable

Basically this class is a sample implementation of a more specialised subtype of fi.pelam.csv.cell.Cell.

It is expected that any nontrivial client will want to specify its own subtypes of fi.pelam.csv.cell.Cell.

This class is quite simple, but the companion object is more interesting as it provides Cell.Parser functions which produce IntegerCell instances (or errors if parsing fails) from String data.

cellKey

the location of this cell in a CSV table.

value

is the integer stored in CSV.

formatter

A function used to convert the integer held by this cell into a String to be stored in CSV text data.

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

Instance Constructors

  1. new IntegerCell(cellKey: CellKey, value: Int)(implicit formatter: IntegerCell.NumberFormatter = IntegerCell.defaultFormatter)

    cellKey

    the location of this cell in a CSV table.

    value

    is the integer stored in CSV.

    formatter

    A function used to convert the integer held by this cell into a String to be stored in CSV text data.

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

    the location of this cell in a CSV table.

    the location of this cell in a CSV table.

    Definition Classes
    IntegerCellCell
  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: IntegerCell.NumberFormatter

    A function used to convert the integer held by this cell into a String to be stored in CSV text data.

    A function used to convert the integer held by this cell into a String to be stored in CSV text data.

    Definition Classes
    IntegerCellNumberCell
  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
    NumberCellCell
    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
    IntegerCellCell
  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
    IntegerCellCell
  24. val value: Int

    is the integer stored in CSV.

    is the integer stored in CSV.

    Definition Classes
    IntegerCellNumberCellCell
  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 NumberCell[Int]

Inherited from Cell

Inherited from AnyRef

Inherited from Any

Ungrouped