ConditionalCellParser
com.phasmidsoftware.tableparser.core.parse.ConditionalCellParser
class ConditionalCellParser[K, P, T](typeName: String, fields: List[String], construct: (K, P) => T, parsers: Map[K, CellParser[P]])(using kp: CellParser[K], helper: ColumnHelper[T]) extends MultiCellParser[T]
The CellParser made by CellParsers.cellParser2Conditional.
Type parameters
- K
-
the type of the first field of T.
- P
-
the type of the second field of T.
- T
-
the type of the result.
Value parameters
- construct
-
a function (K,P) => T.
- fields
-
the names of the two fields of T.
- parsers
-
the parser of P to use for each value of K.
- typeName
-
the name of T (used in error messages).
Attributes
- Graph
-
- Supertypes
-
trait MultiCellParser[T]trait CellParser[T]trait StringConverter[T]class Objecttrait Matchableclass Any
Members list
In this article