Skip to content

//workflow/com.squareup.workflow1/TreeSnapshot

TreeSnapshot

[jvm] class TreeSnapshot

Aggregate of all the snapshots of a tree of workflows.

Can be serialized with toByteString and deserialized with parse.

For tests, you can get a TreeSnapshot from a RenderingAndSnapshot or by creating one for your root workflow only by calling forRootOnly.

Parameters

jvm

childTreeSnapshots

A function that will lazily parse the child snapshots for this tree when invoked. It will be cached in the childTreeSnapshots property.

Types

Name Summary
Companion [jvm]
Content
object Companion


Functions

Name Summary
equals [jvm]
Content
open operator override fun equals(other: Any?): Boolean


hashCode [jvm]
Content
open override fun hashCode(): Int


toByteString [jvm]
Content
fun toByteString(): ByteString
More info
Writes this Snapshot and all its children into a ByteString.