class SubclassCodec[T, S >: T] extends NullSafeCodec[T]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SubclassCodec
- NullSafeCodec
- GenCodec
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new SubclassCodec(nullable: Boolean)(implicit arg0: commons.ClassTag[T], arg1: GenCodec[S])
Value Members
-
val
nullable: Boolean
- Definition Classes
- SubclassCodec → NullSafeCodec
-
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
- NullSafeCodec → GenCodec
-
def
readNonNull(input: Input): T
- Definition Classes
- SubclassCodec → NullSafeCodec
-
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
-
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
- NullSafeCodec → GenCodec
-
def
writeNonNull(output: Output, value: T): Unit
- Definition Classes
- SubclassCodec → NullSafeCodec