Skip to main content

ObjectReference

data class ObjectReference(var objectId: ObjectId, var version: Version, var digest: ObjectDigest) : Disposable

Reference to an object

Contains sufficient information to uniquely identify a specific object.

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

Constructors​

ObjectReferenceconstructor(objectId: ObjectId, version: Version, digest: ObjectDigest)

Properties​

NameSummary
digestvar digest: ObjectDigest
objectIdvar objectId: ObjectId
versionvar version: Version

Functions​

NameSummary
destroyopen override fun destroy()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.