prickle
package prickle
- Alphabetic
- Public
- Protected
Type Members
- trait AcyclicPConfig[P] extends PConfig[P]
- case class CompositePickler[A <: AnyRef](picklers: Map[String, Pickler[_]] = Map.empty) extends Pickler[A] with Product with Serializable
A
CompositePickler[A]
is used to pickle closed class hierarchies under a supertypeA
, where the subclasses' precise static types are lost.A
CompositePickler[A]
is used to pickle closed class hierarchies under a supertypeA
, where the subclasses' precise static types are lost.Picklers for each concrete subclass
B
must be registered with the composite using theconcreteType[B]
method.CompositePicklers use a more complex serialization format than regular picklers, storing the subclass name under key
CompositePickler.ClassKey
and the pickle body underCompositePickler.ValueKey
. - case class CompositeUnpickler[A <: AnyRef](unpicklers: Map[String, Unpickler[_]] = Map.empty) extends Unpickler[A] with Product with Serializable
A
CompositeUnpickler[A]
is used to unpickle closed class hierarchies under a supertypeA
, where the subclasses' precise static types are lost.A
CompositeUnpickler[A]
is used to unpickle closed class hierarchies under a supertypeA
, where the subclasses' precise static types are lost.Unpicklers for each concrete subclass
B
must be registered with the composite using theconcreteType[B]
method. - trait JsBuilder extends PBuilder[JsValue]
- case class JsConfig(prefix: String = "#", areSharedObjectsSupported: Boolean = true) extends PConfig[JsValue] with JsBuilder with JsReader with Product with Serializable
- trait JsReader extends PReader[JsValue]
- trait MaterializePicklerFallback extends AnyRef
- trait MaterializeUnpicklerFallback extends AnyRef
- trait PBuilder[P] extends AnyRef
- trait PConfig[P] extends PReader[P] with PBuilder[P]
- trait PReader[P] extends AnyRef
- case class PickleState(refs: Map[Any, String] = mutable.Map.empty, seq: Int = 0) extends Product with Serializable
- trait Pickler[A] extends AnyRef
You should not need to implement this for the supported use cases: - Primitives and Strings - Case classes and case objects - Maps, Sets and Seqs - Class-hierarchies supported via composite picklers
- case class PicklerPair[A <: AnyRef](pickler: CompositePickler[A] = new CompositePickler[A](), unpickler: CompositeUnpickler[A] = new CompositeUnpickler[A]()) extends Product with Serializable
Helper for registration of Pickler[B]/Unpickler[B] pairs via
withSubtype[B]
- case class UnpickledCurry[A](u: Unpickler[A]) extends Product with Serializable
- trait Unpickler[A] extends AnyRef
You should not need to implement this for the supported use cases: - Primitives and Strings - Case classes and case objects - Maps, Sets and Seqs - Class-hierarchies supported via composite picklers
Value Members
- object CompositePickler extends Serializable
- object PConfig
- object Pickle
Use this object to invoke Pickling from user code
- object Pickler extends MaterializePicklerFallback
Do not import this companion object into scope in user code.
- object PicklerMaterializersImpl
- object Unpickle
Use this object to invoke Unpickling from user code
- object Unpickler extends MaterializeUnpicklerFallback
Do not import this companion object into scope in user code.