Packages

c

com.avsystem.commons.serialization

SealedHierarchyCodec

abstract class SealedHierarchyCodec[T] extends ErrorReportingCodec[T] with ObjectCodec[T]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SealedHierarchyCodec
  2. ObjectCodec
  3. NullSafeCodec
  4. GenObjectCodec
  5. ErrorReportingCodec
  6. GenCodec
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SealedHierarchyCodec(typeRepr: String, nullable: Boolean, caseNames: Array[String], cases: Array[Class[_]])

Abstract Value Members

  1. abstract def readObject(input: ObjectInput): T
    Definition Classes
    ObjectCodecGenObjectCodec
  2. abstract def writeObject(output: ObjectOutput, value: T): Unit
    Definition Classes
    ObjectCodecGenObjectCodec

Concrete Value Members

  1. val nullable: Boolean
    Definition Classes
    SealedHierarchyCodecNullSafeCodec
  2. final def read(input: Input): T

    Deserializes a value of type T from an Input.

    Deserializes a value of type T from an Input.

    Definition Classes
    NullSafeCodecGenCodec
  3. final def readNonNull(input: Input): T
    Definition Classes
    ObjectCodecNullSafeCodec
  4. final def transform[U](onWrite: (U) ⇒ T, onRead: (T) ⇒ U): GenCodec[U]

    Transforms this codec into a codec of other type using a bidirectional conversion between the original and new type.

    Transforms this codec into a codec of other type using a bidirectional conversion between the original and new type.

    Definition Classes
    GenCodec
  5. final def write(output: Output, value: T): Unit

    Serializes a value of type T into an Output.

    Serializes a value of type T into an Output.

    Definition Classes
    NullSafeCodecGenCodec
  6. final def writeNonNull(output: Output, value: T): Unit
    Definition Classes
    ObjectCodecNullSafeCodec