Class/Object

argonaut

CodecJson

Related Docs: object CodecJson | package argonaut

Permalink

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. All

Abstract Value Members

  1. abstract val Decoder: DecodeJson[A]

    Permalink
  2. abstract val Encoder: EncodeJson[A]

    Permalink

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def &&&[B](x: DecodeJson[B]): DecodeJson[(A, B)]

    Permalink

    Combine two decoders.

    Combine two decoders.

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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  6. def apply(c: HCursor): DecodeResult[A]

    Permalink

    Decode the given hcursor.

    Decode the given hcursor. Alias for decode.

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

    Permalink

    Encode the given value.

    Encode the given value. Alias for encode.

    Definition Classes
    EncodeJson
  8. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def contramap[B](f: (B) ⇒ A): EncodeJson[B]

    Permalink

    Contravariant functor.

    Contravariant functor.

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

    Permalink

    Decode the given hcursor.

    Decode the given hcursor.

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

    Permalink

    Decode the given json.

    Decode the given json.

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

    Permalink

    Encode the given value.

    Encode the given value.

    Definition Classes
    CodecJsonEncodeJson
  14. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def flatMap[B](f: (A) ⇒ DecodeJson[B]): DecodeJson[B]

    Permalink

    Monad.

    Monad.

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

    Permalink

    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[_]

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

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

    Permalink
    Definition Classes
    Any
  22. def map[B](f: (A) ⇒ B): DecodeJson[B]

    Permalink

    Covariant functor.

    Covariant functor.

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

    Permalink

    Transform the resulting Json instance.

    Transform the resulting Json instance.

    Definition Classes
    EncodeJson
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def product[B](x: DecodeJson[B]): (HCursor, HCursor) ⇒ DecodeResult[(A, B)]

    Permalink

    Run two decoders.

    Run two decoders.

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

    Permalink

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

    Permalink

    Run one or another decoder.

    Run one or another decoder.

    Definition Classes
    DecodeJson
  30. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  32. def tryDecode(c: ACursor): DecodeResult[A]

    Permalink

    Decode the given acursor.

    Decode the given acursor.

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

    Permalink

    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]

    Permalink

    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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def widen[AA]()(implicit ev: <:<[A, AA]): DecodeJson[AA]

    Permalink

    Widen A into AA.

    Widen A into AA.

    Definition Classes
    DecodeJson
  39. def xmap[B](f: (A) ⇒ B)(g: (B) ⇒ A): CodecJson[B]

    Permalink
  40. def |||[B, AA](x: ⇒ DecodeJson[B])(implicit evA: <:<[A, AA], evB: <:<[B, AA]): DecodeJson[AA]

    Permalink

    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