trait ObjectCodec[T] extends GenObjectCodec[T] with NullSafeCodec[T]
Convenience base class for GenCodec
s that serialize values as objects.
NOTE: if you need to implement a custom GenCodec
that writes an object, the best way to do it is to have
manually implemented apply
and unapply
in companion object or by using GenCodec.fromApplyUnapplyProvider.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- ObjectCodec
- NullSafeCodec
- GenObjectCodec
- GenCodec
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
nullable: Boolean
- Definition Classes
- NullSafeCodec
-
abstract
def
readObject(input: ObjectInput): T
- Definition Classes
- ObjectCodec → GenObjectCodec
-
abstract
def
writeObject(output: ObjectOutput, value: T): Unit
- Definition Classes
- ObjectCodec → GenObjectCodec
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
final
def
readNonNull(input: Input): T
- Definition Classes
- ObjectCodec → NullSafeCodec
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
-
final
def
writeNonNull(output: Output, value: T): Unit
- Definition Classes
- ObjectCodec → NullSafeCodec