io.circe

Decoder

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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. final class Secondary[A] extends AnyVal

    A wrapper that supports proper prioritization of derived instances.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply[A](implicit d: Decoder[A]): Decoder[A]

    Return an instance for a given type.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

  10. implicit val decodeBigInt: Decoder[BigInt]

  11. implicit val decodeBoolean: Decoder[Boolean]

  12. implicit val decodeByte: Decoder[Byte]

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

  14. implicit val decodeChar: Decoder[Char]

  15. implicit val decodeDouble: Decoder[Double]

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

  17. implicit val decodeFloat: Decoder[Float]

  18. implicit val decodeHCursor: Decoder[HCursor]

  19. implicit val decodeInt: Decoder[Int]

  20. implicit val decodeJson: Decoder[Json]

  21. implicit val decodeLong: Decoder[Long]

  22. 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]]

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

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

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

  26. implicit val decodeShort: Decoder[Short]

  27. implicit val decodeString: Decoder[String]

  28. implicit val decodeUnit: Decoder[Unit]

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

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

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

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

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

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

    Unwrap a Secondary wrapper.

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

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

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

    Construct an instance from a function.

  38. final def isInstanceOf[T0]: Boolean

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

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

    Definition Classes
    AnyRef
  41. final def notify(): Unit

    Definition Classes
    AnyRef
  42. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  44. def toString(): String

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

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

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

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

    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