corda / net.corda.core.contracts / LinearPointer / <init>

<init>

LinearPointer(pointer: UniqueIdentifier, type: Class<T>)

Allows this class to be evolved through backwards compatibility with version 1 of this class.

Parameters

pointer - The unique identifier that this points to.

type - The underlying LinearState type that this points to.

LinearPointer(pointer: UniqueIdentifier, type: Class<T>, isResolved: Boolean = true)

LinearPointer allows a ContractState to "point" to another LinearState creating a "many-to-one" relationship between all the states containing the pointer to a particular LinearState and the LinearState being pointed to. Using the LinearPointer is useful when one state depends on the data contained within another state that evolves independently. When using LinearPointer it is worth noting: