This ugly workaround has been introduced when standard Option
encoding changed from zero-or-one element list
encoding to unwrapped-or-null encoding which effectively disallowed serializing null
and Some(null)
.
This ugly workaround has been introduced when standard Option
encoding changed from zero-or-one element list
encoding to unwrapped-or-null encoding which effectively disallowed serializing null
and Some(null)
.
If some Output
implementation still wants to use the list encoding, it may do it by overriding this method
and returning true
.
Represents an abstract sink to which a value may be serialized (written). An Output instance should be assumed to be stateful. After calling any of the
write
methods, it MUST NOT be reused. This means that Output instance can be used only to write a single value. However, if the value to write is complex, one can usewriteList
/writeSet
orwriteObject
/writeMap
.