NamedCodec

dev.hnaderi.namedcodec.NamedCodec
See theNamedCodec companion object
trait NamedCodec[A, R] extends NamedEncoder[A, R], NamedDecoder[A, R]

Attributes

Companion
object
Source
NamedCodec.scala
Graph
Supertypes
trait NamedDecoder[A, R]
trait NamedEncoder[A, R]
class Object
trait Matchable
class Any
Self type
NamedCodec[A, R]

Members list

Value members

Concrete methods

final def eimap[B](fcon: B => A)(fcov: A => Either[String, B]): NamedCodec[B, R]

Attributes

Source
NamedCodec.scala
final def imap[B](fcon: B => A)(fcov: A => B): NamedCodec[B, R]

Attributes

Source
NamedCodec.scala

Inherited methods

def canDecode(msg: String): Boolean

Attributes

Inherited from:
NamedDecoder
Source
NamedCodec.scala
final def contramap[B](f: B => A): NamedEncoder[B, R]

Attributes

Inherited from:
NamedEncoder
Source
NamedCodec.scala
def decode(msg: EncodedMessage[R]): Either[String, A]

Attributes

Inherited from:
NamedDecoder
Source
NamedCodec.scala
def encode(a: A): EncodedMessage[R]

Attributes

Inherited from:
NamedEncoder
Source
NamedCodec.scala
final def map[B](f: A => B): NamedDecoder[B, R]

Attributes

Inherited from:
NamedDecoder
Source
NamedCodec.scala