CellDecoder

kantan.csv.CellDecoder
object CellDecoder extends DecoderCompanion[String, DecodeError, codecs.type], PlatformSpecificCellDecoderInstances

Provides useful methods for summoning and creating instances of CellDecoder.

Attributes

Graph
Supertypes
trait DecoderCompanion[String, DecodeError, codecs.type]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Inherited methods

def apply[D](implicit ev: Decoder[String, D, DecodeError, codecs.type]): Decoder[String, D, DecodeError, codecs.type]

Summons an implicit instance of Decoder if one is found, fails compilation otherwise.

Summons an implicit instance of Decoder if one is found, fails compilation otherwise.

This is a slightly faster, less verbose version of implicitly.

Attributes

Inherited from:
DecoderCompanion
def dateDecoder(format: DateFormat): CellDecoder[Date]

Attributes

Inherited from:
PlatformSpecificCellDecoderInstances
def from[D](f: String => Either[DecodeError, D]): Decoder[String, D, DecodeError, codecs.type]

Creates a new Decoder instance from the specified function.

Creates a new Decoder instance from the specified function.

Attributes

Inherited from:
DecoderCompanion
def fromPartial[D](f: PartialFunction[String, Either[DecodeError, D]])(implicit t: IsError[DecodeError]): Decoder[String, D, DecodeError, codecs.type]

Attributes

Inherited from:
DecoderCompanion
def fromUnsafe[D](f: String => D)(implicit t: IsError[DecodeError]): Decoder[String, D, DecodeError, codecs.type]

Creates a new Decoder instance from the specified function.

Creates a new Decoder instance from the specified function.

This method turns the specified function safe. The error message might end up being a bit generic though - use from if you want to deal with errors explicitly.

Attributes

Inherited from:
DecoderCompanion
def oneOf[D](ds: Decoder[String, D, DecodeError, codecs.type]*)(implicit i: IsError[DecodeError]): Decoder[String, D, DecodeError, codecs.type]

Creates a new Decoder instance from the specified alternatives.

Creates a new Decoder instance from the specified alternatives.

When decoding, each of the specified decoders will be attempted. The result will be the first success if found, or the last failure otherwise.

Attributes

Inherited from:
DecoderCompanion