class

Serializable

@FacetMeta { inherited=true }
@Serializable
const class Serializable : Obj, Facet

Serializable is a facet used to annotate types which can be serialized. Objects are serialized via OutStream.writeObj and deserialized via InStream.readObj.

See the Serialization Doc for details.

fields simple

Simples are serialized atomically via a customized string representation using the following rules

collection

Collections are serialized with a collection of child objects using the following rules where Item is the item type

collection const Bool : collection

Collections are serialized with a collection of child objects using the following rules where Item is the item type:

  • Provide an add(Item) method to add child items during readObj
  • Provide an each(|Item| f) method to iterate child items during writeObj

simple const Bool : simple

Simples are serialized atomically via a customized string representation using the following rules:

  • Override Obj.toStr to return a suitable string representation of the object.
  • Must declare a static method called fromStr which takes one Str parameter and returns an instance of the declaring type. The fromStr method may contain additional parameters if they declare defaults.

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST