Object/Trait

io.circe

Decoder

Related Docs: trait Decoder | package circe

Permalink

object Decoder

Utilities and instances for Decoder.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Decoder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. final class Secondary[A] extends AnyVal

    Permalink

    A wrapper that supports proper prioritization of derived instances.

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. def apply[A](implicit d: Decoder[A]): Decoder[A]

    Permalink

    Return an instance for a given type.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. implicit val decodeBigDecimal: Decoder[BigDecimal]

    Permalink

  8. implicit val decodeBigInt: Decoder[BigInt]

    Permalink

  9. implicit val decodeBoolean: Decoder[Boolean]

    Permalink

  10. implicit val decodeByte: Decoder[Byte]

    Permalink

  11. implicit def decodeCanBuildFrom[A, C[_]](implicit d: Decoder[A], cbf: CanBuildFrom[Nothing, A, C[A]]): Decoder[C[A]]

    Permalink

  12. implicit val decodeChar: Decoder[Char]

    Permalink

  13. implicit val decodeDouble: Decoder[Double]

    Permalink

  14. def decodeEither[A, B](leftKey: String, rightKey: String)(implicit da: Decoder[A], db: Decoder[B]): Decoder[Either[A, B]]

    Permalink

  15. implicit val decodeFloat: Decoder[Float]

    Permalink

  16. implicit val decodeHCursor: Decoder[HCursor]

    Permalink

  17. implicit val decodeInt: Decoder[Int]

    Permalink

  18. implicit val decodeJson: Decoder[Json]

    Permalink

  19. implicit val decodeLong: Decoder[Long]

    Permalink

  20. implicit def decodeMap[M[K, +V] <: Map[K, V], V](implicit d: Decoder[V], cbf: CanBuildFrom[Nothing, (String, V), M[String, V]]): Decoder[M[String, V]]

    Permalink

  21. implicit def decodeNonEmptyList[A](implicit arg0: Decoder[A]): Decoder[NonEmptyList[A]]

    Permalink

  22. implicit def decodeOption[A](implicit d: Decoder[A]): Decoder[Option[A]]

    Permalink

  23. implicit def decodeSet[A](implicit arg0: Decoder[A]): Decoder[Set[A]]

    Permalink

  24. implicit val decodeShort: Decoder[Short]

    Permalink

  25. implicit val decodeString: Decoder[String]

    Permalink

  26. implicit val decodeUnit: Decoder[Unit]

    Permalink

  27. def decodeValidated[E, A](failureKey: String, successKey: String)(implicit de: Decoder[E], da: Decoder[A]): Decoder[Validated[E, A]]

    Permalink

  28. def decodeXor[A, B](leftKey: String, rightKey: String)(implicit da: Decoder[A], db: Decoder[B]): Decoder[Xor[A, B]]

    Permalink

  29. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. implicit def fromSecondaryDecoder[A](implicit d: Secondary[A]): Decoder[A]

    Permalink

    Unwrap a Secondary wrapper.

  33. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  35. def instance[A](f: (HCursor) ⇒ Xor[DecodingFailure, A]): Decoder[A]

    Permalink

    Construct an instance from a function.

  36. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  37. implicit val monadDecode: Monad[Decoder]

    Permalink

  38. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def withReattempt[A](f: (ACursor) ⇒ Xor[DecodingFailure, A]): Decoder[A]

    Permalink

    Construct an instance from a function that will reattempt on failure.

Inherited from AnyRef

Inherited from Any

Miscellaneous utilities

Decoder instances

Disjunction instances

Instance creation methods for disjunction-like types. Note that these instances are implicit, since they require non-obvious decisions about the names of the discriminators. If you want instances for these types you can include the following import in your program:

import io.circe.disjunctionCodecs._

Type class instances

Ungrouped