DerivedCellDecoder

fs2.data.csv.generic.internal.DerivedCellDecoder
See theDerivedCellDecoder companion object
trait DerivedCellDecoder[T] extends CellDecoder[T]

Attributes

Companion
object
Source
DerivedCellDecoder.scala
Graph
Supertypes
trait CellDecoder[T]
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

def apply(cell: String): DecoderResult[T]

Attributes

Inherited from:
CellDecoder
Source
CellDecoder.scala
def either[B](cd: CellDecoder[B]): CellDecoder[Either[T, B]]

Similar to or, but return the result as an Either signaling which cell decoder succeeded.

Similar to or, but return the result as an Either signaling which cell decoder succeeded. Allows for parsing an unrelated type in case of failure.

Type parameters

B

the type the alternative decoder returns

Value parameters

cd

the alternative decoder

Attributes

Returns

a decoder combining both decoders

Inherited from:
CellDecoder
Source
CellDecoder.scala
def emap[T2](f: T => DecoderResult[T2]): CellDecoder[T2]

Map the parsed value, potentially failing.

Map the parsed value, potentially failing.

Type parameters

T2

the result type

Value parameters

f

the mapping function

Attributes

Returns

a cell decoder reading the mapped type

Inherited from:
CellDecoder
Source
CellDecoder.scala
def flatMap[T2](f: T => CellDecoder[T2]): CellDecoder[T2]

Map the parsed value to a new decoder, which in turn will be applied to the parsed value.

Map the parsed value to a new decoder, which in turn will be applied to the parsed value.

Type parameters

T2

the result type

Value parameters

f

the mapping function

Attributes

Returns

a cell decoder reading the mapped type

Inherited from:
CellDecoder
Source
CellDecoder.scala
def map[T2](f: T => T2): CellDecoder[T2]

Map the parsed value.

Map the parsed value.

Type parameters

T2

the result type

Value parameters

f

the mapping function

Attributes

Returns

a cell decoder reading the mapped type

Inherited from:
CellDecoder
Source
CellDecoder.scala
def or[TT >: T](cd: => CellDecoder[TT]): CellDecoder[TT]

Fail-over.

Fail-over. If this decoder fails, try the supplied other decoder.

Type parameters

TT

the return type

Value parameters

cd

the fail-over decoder

Attributes

Returns

a decoder combining this and the other decoder

Inherited from:
CellDecoder
Source
CellDecoder.scala