MsgpackCompanion

msgpack4z.MsgpackCompanion
abstract class MsgpackCompanion[A, B](implicit A: MsgpackCodec[A]) extends A => B

Attributes

Example
case class UserId(value: Int)
object UserId extends MsgpackCompanion[Int, UserId]
Source
MsgpackCompanion.scala
Graph
Supertypes
trait A => B
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def unapply(value: B): Option[A]

Attributes

Source
MsgpackCompanion.scala

Inherited methods

def andThen[A](g: B => A): A => A

Attributes

Inherited from:
Function1
def apply(v1: A): B

Attributes

Inherited from:
Function1
def compose[A](g: A => A): A => B

Attributes

Inherited from:
Function1
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1

Implicits

Implicits

final implicit val msgpackCodec: MsgpackCodec[B]

Attributes

Source
MsgpackCompanion.scala