EnumStringCodec

mcodec.EnumStringCodec
final class EnumStringCodec[T](typeName: String, caseNames: Array[String], caseCodecs: => Array[MCodec[Any]], ordinalOf: T => Int) extends SimpleCodec[T]

Attributes

Source
DerivedCodecs.scala
Graph
Supertypes
trait SimpleCodec[T]
trait NullSafeCodec[T]
trait MCodec[T]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def readSimple(in: SimpleInput): T

Attributes

Source
DerivedCodecs.scala
def writeSimple(out: SimpleOutput, value: T): Unit

Attributes

Source
DerivedCodecs.scala

Inherited methods

final def nullable: MCodec[T | Null]

Attributes

Inherited from:
MCodec
Source
MCodec.scala
final def read(input: Input): T

Attributes

Inherited from:
NullSafeCodec
Source
BaseCodecs.scala
final def readNonNull(input: Input): T

Attributes

Inherited from:
SimpleCodec
Source
BaseCodecs.scala
final inline def transform[U](inline onWrite: U => T, inline onRead: T => U): MCodec[U]

Attributes

Inherited from:
MCodec
Source
MCodec.scala
final def transformed[U](onRead: T => U)(onWrite: U => T): MCodec[U]

Attributes

Inherited from:
MCodec
Source
MCodec.scala
final def write(output: Output, value: T): Unit

Attributes

Inherited from:
NullSafeCodec
Source
BaseCodecs.scala
final def writeNonNull(output: Output, value: T): Unit

Attributes

Inherited from:
SimpleCodec
Source
BaseCodecs.scala