Trait

kantan.csv

CellDecoderInstances

Related Doc: package csv

Permalink

trait CellDecoderInstances extends AnyRef

All default CellDecoder instances.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CellDecoderInstances
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. implicit def cellDecoderEither[A, B](implicit arg0: CellDecoder[A], arg1: CellDecoder[B]): CellDecoder[Either[A, B]]

    Permalink

    Provides an instance of CellDecoder[Either[A, B]] for any type A and B that have instances of CellDecoder.

    Provides an instance of CellDecoder[Either[A, B]] for any type A and B that have instances of CellDecoder.

    Strings that can be decoded as the first type are returned as Left:

    scala> CellDecoder[Either[Int, Boolean]].decode("123")
    res1: DecodeResult[Either[Int, Boolean]] = Success(Left(123))

    Strings that cannot be decoded as the first type, but can as the second, are returned as Right:

    scala> CellDecoder[Either[Int, Boolean]].decode("true")
    res2: DecodeResult[Either[Int, Boolean]] = Success(Right(true))
  6. implicit def cellDecoderOpt[A](implicit arg0: CellDecoder[A]): CellDecoder[Option[A]]

    Permalink

    Provides an instance of CellDecoder[Option[A]] for any type A that has an instance of CellDecoder.

    Provides an instance of CellDecoder[Option[A]] for any type A that has an instance of CellDecoder.

    Non-empty strings are decoded as Some:

    scala> CellDecoder[Option[Int]].decode("123")
    res1: DecodeResult[Option[Int]] = Success(Some(123))

    Empty strings are decoded as None:

    scala> CellDecoder[Option[Int]].decode("")
    res1: DecodeResult[Option[Int]] = Success(None)
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. implicit def fromStringDecoder[A](implicit arg0: StringDecoder[A]): CellDecoder[A]

    Permalink

    Turns existing StringDecoder instances into CellDecoder ones.

    Turns existing StringDecoder instances into CellDecoder ones.

    This provides support for most basic Scala types - Int, for example:

    CellDecoder[Int].decode("123")
    res1: DecodeResult[Option[Int]] = Success(Some(123))
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped