sealed abstract class CodecJson[A] extends EncodeJson[A] with DecodeJson[A]

Self Type
CodecJson[A]
Source
CodecJson.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CodecJson
  2. DecodeJson
  3. EncodeJson
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract val Decoder: DecodeJson[A]
  2. abstract val Encoder: EncodeJson[A]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def &&&[B](x: DecodeJson[B]): DecodeJson[(A, B)]

    Combine two decoders.

    Combine two decoders.

    Definition Classes
    DecodeJson
  4. def <&>[B](x: => EncodeJson[B]): EncodeJson[Either[A, B]]

    Split on this encoder and the given encoder.

    Split on this encoder and the given encoder.

    Definition Classes
    EncodeJson
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def apply(c: HCursor): DecodeResult[A]

    Decode the given hcursor.

    Decode the given hcursor. Alias for decode.

    Definition Classes
    DecodeJson
  7. def apply(a: A): Json

    Encode the given value.

    Encode the given value. Alias for encode.

    Definition Classes
    EncodeJson
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def contramap[B](f: (B) => A): EncodeJson[B]

    Contravariant functor.

    Contravariant functor.

    Definition Classes
    EncodeJson
  11. def decode(c: HCursor): DecodeResult[A]

    Decode the given hcursor.

    Decode the given hcursor.

    Definition Classes
    CodecJsonDecodeJson
  12. def decodeJson(j: Json): DecodeResult[A]

    Decode the given json.

    Decode the given json.

    Definition Classes
    DecodeJson
  13. def encode(a: A): Json

    Encode the given value.

    Encode the given value.

    Definition Classes
    CodecJsonEncodeJson
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. def flatMap[B](f: (A) => DecodeJson[B]): DecodeJson[B]

    Monad.

    Monad.

    Definition Classes
    DecodeJson
  18. def flatMapCursor(f: (HCursor) => DecodeResult[HCursor]): DecodeJson[A]

    Transform the incoming HCursor to produce another DecodeJson instance.

    Transform the incoming HCursor to produce another DecodeJson instance.

    Definition Classes
    DecodeJson
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def map[B](f: (A) => B): DecodeJson[B]

    Covariant functor.

    Covariant functor.

    Definition Classes
    DecodeJson
  23. def mapJson(f: (Json) => Json): EncodeJson[A]

    Transform the resulting Json instance.

    Transform the resulting Json instance.

    Definition Classes
    EncodeJson
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def product[B](x: DecodeJson[B]): (HCursor, HCursor) => DecodeResult[(A, B)]

    Run two decoders.

    Run two decoders.

    Definition Classes
    DecodeJson
  28. def setName(n: String): CodecJson[A]

    Build a new DecodeJson codec with the specified name.

    Build a new DecodeJson codec with the specified name.

    Definition Classes
    CodecJsonDecodeJson
  29. def split[B](x: DecodeJson[B]): (Either[HCursor, HCursor]) => DecodeResult[Either[A, B]]

    Run one or another decoder.

    Run one or another decoder.

    Definition Classes
    DecodeJson
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. def tryDecode(c: ACursor): DecodeResult[A]

    Decode the given acursor.

    Decode the given acursor.

    Definition Classes
    CodecJsonDecodeJson
  33. def validate(f: (HCursor) => Boolean, message: => String): DecodeJson[A]

    Build a new DecodeJson codec with the specified precondition that f(c) == true.

    Build a new DecodeJson codec with the specified precondition that f(c) == true.

    Definition Classes
    DecodeJson
  34. def validateFields(n: Int): DecodeJson[A]

    Build a new DecodeJson codec with the precondition that the cursor focus is object with exactly n field.

    Build a new DecodeJson codec with the precondition that the cursor focus is object with exactly n field.

    Definition Classes
    DecodeJson
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  38. def widen[AA]()(implicit ev: <:<[A, AA]): DecodeJson[AA]

    Widen A into AA.

    Widen A into AA.

    Definition Classes
    DecodeJson
  39. def xmap[B](f: (A) => B)(g: (B) => A): CodecJson[B]
  40. def |||[B, AA](x: => DecodeJson[B])(implicit evA: <:<[A, AA], evB: <:<[B, AA]): DecodeJson[AA]

    Choose the first succeeding decoder.

    Choose the first succeeding decoder.

    Definition Classes
    DecodeJson

Inherited from DecodeJson[A]

Inherited from EncodeJson[A]

Inherited from AnyRef

Inherited from Any

Ungrouped