object Codec
- Source
- Codec.scala
- Alphabetic
- By Inheritance
- Codec
- AnyRef
- Any
- Hide All
- Show All
- 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
- val booleanCodec: Codec[String, Boolean]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- val doubleCodec: Codec[String, Double]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromEncoderAndDecoder[E, D](encoder: Encoder[D, E])(decoder: Decoder[E, D]): Codec[E, D]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- val intCodec: Codec[String, Int]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val longCodec: Codec[String, Long]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def parseStringCatchingExceptions[A](type: String, parse: (String) => A, print: (A) => String = (x: A) => x.toString()): Codec[String, A]
Produce a codec to/from a string.
Produce a codec to/from a string. If the parsing function fails, the decoding output is an Invalid with a message mentioning the type name.
- type
name of the type being decoded
- parse
parsing function to use, with exceptions turned into Invalid
printing function to use, not supposed to throw exceptions
- def sequentially[A, B, C](ab: Codec[A, B])(bc: Codec[B, C]): Codec[A, C]
Combines two codecs, sequentially, by feeding the input of the second one with the output of the first one
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val uuidCodec: Codec[String, UUID]
- 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])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])