Help text that can be queried interactively: more detail than help
.
Help text that can be queried interactively: more detail than help
. (FIXME: currently only contains the apply
signature.)
Reconstructs a container of known type from JSON.
Reconstructs a container of known type from JSON. General users should call the Factory
object's fromJson
, which uses header data to identify the container type. (This is called by fromJson
.)
Help text that can be queried interactively: a one-liner that can be included in a menu.
Name of the concrete Factory
as a string; used to label the container type in JSON.
Interface for a container factory, always named as imperative verbs, such as "Count" and "Bin".
Each factory has:
apply
method to create an active container than can aggregate data (and is therefore mutable). This active container is named by the gerund form of the verb, such as "Counting" and "Binning".ed
method to create a fixed container that cannot aggregate data (immutable), only merge with the+
operator. This fixed container is named by the past tense form of the verb, such as "Counted" and "Binned".fromJsonFragment
method that can reconstruct a fixed (immutable) container from its JSON representation. This is used by theFactory
object'sfromJson
entry point. (Click on the "t" in a circle in the upper-left to see theFactory
object's documentation, rather than theFactory
trait.unapply
methods to unpack active and fixed containers in Scala pattern matching.