com.phasmidsoftware.tableparser.core.parse.ProductCellParser
See theProductCellParser companion object
class ProductCellParser[T](typeName: String, fieldNames: List[String], fieldParsers: List[CellParser[_]], construct: Seq[Any] => T)(using helper: ColumnHelper[T]) extends MultiCellParser[T]
The CellParser of a case class T, as derived by CellParser.derived.
Type parameters
- T
-
the type of the result.
Value parameters
- construct
-
a function to construct a T from the values of its fields.
- fieldNames
-
the names of the fields of T, in declaration order.
- fieldParsers
-
the CellParsers of the fields of T, in the same order.
- helper
-
the ColumnHelper[T] which maps field names to column names.
- typeName
-
the name of T (used in error messages).
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait MultiCellParser[T]trait CellParser[T]trait StringConverter[T]class Objecttrait Matchableclass Any
Members list
In this article