trait CellDecoderInstances extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- CellDecoderInstances
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit def cellDecoderEither[A, B](implicit arg0: CellDecoder[A], arg1: CellDecoder[B]): CellDecoder[Either[A, B]]
Provides an instance of
CellDecoder[Either[A, B]]
for any typeA
andB
that have instances of CellDecoder.Provides an instance of
CellDecoder[Either[A, B]]
for any typeA
andB
that have instances of CellDecoder.// Left value scala> CellDecoder[Either[Int, Boolean]].decode("123") res1: DecodeResult[Either[Int, Boolean]] = Right(Left(123)) // Right value scala> CellDecoder[Either[Int, Boolean]].decode("true") res2: DecodeResult[Either[Int, Boolean]] = Right(Right(true))
Example: - implicit def cellDecoderOpt[A](implicit arg0: CellDecoder[A]): CellDecoder[Option[A]]
Provides an instance of
CellDecoder[Option[A]]
for any typeA
that has an instance of CellDecoder.Provides an instance of
CellDecoder[Option[A]]
for any typeA
that has an instance of CellDecoder.// Non-empty value scala> CellDecoder[Option[Int]].decode("123") res1: DecodeResult[Option[Int]] = Right(Some(123)) // Empty value scala> CellDecoder[Option[Int]].decode("") res2: DecodeResult[Option[Int]] = Right(None)
Example: - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- implicit def fromStringDecoder[A](implicit arg0: StringDecoder[A]): CellDecoder[A]
Turns existing
StringDecoder
instances into CellDecoder ones.Turns existing
StringDecoder
instances into CellDecoder ones.This provides support for most basic Scala types.
scala> CellDecoder[Int].decode("123") res1: DecodeResult[Int] = Right(123)
Example: - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()