public class StatePointer<T extends ContractState>
class StatePointer contains a
StatePointer.getPointer to a
interface ContractState. The
class StatePointer can be included in a
or included in an off-ledger data structure.
class StatePointers can be resolved to a
class StateAndRef by performing a
vault query. There are two types of pointers; linear and static.
class LinearPointers are for use with
class StaticPointers are for use with any type of
public java.lang.Object getPointer()
public java.lang.Class<T> getType()
Type of the state which is being pointed to.
public StateAndRef<T> resolve(ServiceHub services)
public StateAndRef<T> resolve(LedgerTransaction ltx)
class StatePointer to a
class StateAndRef from inside a
class LedgerTransaction. The intuition here is that all
of the pointed-to states will be included in the transaction as reference states.