Skip to content

//workflow/com.squareup.workflow1/Snapshot

Snapshot

[jvm] class Snapshot

A lazy wrapper of ByteString. Allows Workflows to capture their state frequently, without worrying about performing unnecessary serialization work.

Types

Name Summary
Companion [jvm]
Content
object Companion


Functions

Name Summary
equals [jvm]
Content
open operator override fun equals(other: Any?): Boolean
More info
Compares Snapshots by comparing their bytes.


hashCode [jvm]
Content
open override fun hashCode(): Int
More info
Calculates hashcode using bytes.


toString [jvm]
Content
open override fun toString(): String
More info
Returns a String describing the bytes of this Snapshot.


Properties

Name Summary
bytes [jvm] val bytes: ByteString

Extensions

Name Summary
toParcelable [androidJvm]
Content
inline fun <T : Parcelable> Snapshot.toParcelable(): T?