ContentAddressedLocator

data class ContentAddressedLocator constructor(val contentHash: String, val display: String? = null) : SourceLocator

A locator that identifies source material by its content hash.

Because it identifies material by content rather than location, any store holding matching bytes satisfies the reference.

Constructors

Link copied to clipboard
constructor(contentHash: String, display: String? = null)

Properties

Link copied to clipboard

The hash of the source content (e.g. a SHA-256 hex string)

Link copied to clipboard
open override val display: String? = null

Optional human-readable label

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun key(): String

A stable, comparable key identifying this locator.