public static class Vault.Update<U extends ContractState>
Represents an update observed by the vault that will be notified to observers. Include the class StateRef
s of
transaction outputs that were consumed (inputs) and the interface ContractState
s produced (outputs) to/by the transaction
or transactions observed and the vault.
If the vault observes multiple transactions simultaneously, where some transactions consume the outputs of some of the other transactions observed, then the changes are observed "net" of those.
class StateRef
,
interface ContractState
Constructor and Description |
---|
Update(java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> consumed,
java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> produced,
java.util.UUID flowId,
Vault.UpdateType type,
java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> references)
Represents an update observed by the vault that will be notified to observers. Include the
class StateRef s of
transaction outputs that were consumed (inputs) and the interface ContractState s produced (outputs) to/by the transaction
or transactions observed and the vault. |
Modifier and Type | Method and Description |
---|---|
java.util.Set<net.corda.core.contracts.StateAndRef> |
component1() |
java.util.Set<net.corda.core.contracts.StateAndRef> |
component2() |
java.util.UUID |
component3() |
Vault.UpdateType |
component4()
Specifies the type of update,
|
java.util.Set<net.corda.core.contracts.StateAndRef> |
component5() |
<T extends ContractState> |
containsType(java.lang.Class<T> clazz,
Vault.StateStatus status)
Checks whether the update contains a state of the specified type and state status
|
Vault.Update<U> |
copy(java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> consumed,
java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> produced,
java.util.UUID flowId,
Vault.UpdateType type)
Additional copy method to maintain backwards compatibility.
|
Vault.Update<U> |
copy(java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> consumed,
java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> produced,
java.util.UUID flowId,
Vault.UpdateType type,
java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> references)
Represents an update observed by the vault that will be notified to observers. Include the
class StateRef s of
transaction outputs that were consumed (inputs) and the interface ContractState s produced (outputs) to/by the transaction
or transactions observed and the vault. |
boolean |
equals(java.lang.Object p) |
java.util.Set<net.corda.core.contracts.StateAndRef> |
getConsumed() |
java.util.UUID |
getFlowId() |
java.util.Set<net.corda.core.contracts.StateAndRef> |
getProduced() |
java.util.Set<net.corda.core.contracts.StateAndRef> |
getReferences() |
Vault.UpdateType |
getType()
Specifies the type of update,
|
int |
hashCode() |
boolean |
isEmpty() |
Vault.Update<U> |
plus(Vault.Update<U> rhs)
Combine two updates into a single update with the combined inputs and outputs of the two updates but net
any outputs of the left-hand-side (this) that are consumed by the inputs of the right-hand-side (rhs).
|
java.lang.String |
toString() |
public Update(java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> consumed, java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> produced, java.util.UUID flowId, Vault.UpdateType type, java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> references)
Represents an update observed by the vault that will be notified to observers. Include the class StateRef
s of
transaction outputs that were consumed (inputs) and the interface ContractState
s produced (outputs) to/by the transaction
or transactions observed and the vault.
If the vault observes multiple transactions simultaneously, where some transactions consume the outputs of some of the other transactions observed, then the changes are observed "net" of those.
type
- Specifies the type of update, currently supported types are general and, contract upgrade and notary change.Notary change transactions only modify the notary field on states, and potentially need to be handleddifferently.class StateRef
,
interface ContractState
public <T extends ContractState> boolean containsType(java.lang.Class<T> clazz, Vault.StateStatus status)
Checks whether the update contains a state of the specified type and state status
public boolean isEmpty()
public Vault.Update<U> plus(Vault.Update<U> rhs)
Combine two updates into a single update with the combined inputs and outputs of the two updates but net any outputs of the left-hand-side (this) that are consumed by the inputs of the right-hand-side (rhs).
i.e. the net effect in terms of state live-ness of receiving the combined update is the same as receiving this followed by rhs.
public java.lang.String toString()
public Vault.Update<U> copy(java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> consumed, java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> produced, java.util.UUID flowId, Vault.UpdateType type)
Additional copy method to maintain backwards compatibility.
public java.util.Set<net.corda.core.contracts.StateAndRef> getConsumed()
public java.util.Set<net.corda.core.contracts.StateAndRef> getProduced()
public java.util.UUID getFlowId()
public Vault.UpdateType getType()
Specifies the type of update,
currently supported types are general and, contract upgrade and notary change.Notary change transactions only modify the notary field on states, and potentially need to be handleddifferently.
public java.util.Set<net.corda.core.contracts.StateAndRef> getReferences()
public java.util.Set<net.corda.core.contracts.StateAndRef> component1()
public java.util.Set<net.corda.core.contracts.StateAndRef> component2()
public java.util.UUID component3()
public Vault.UpdateType component4()
Specifies the type of update,
currently supported types are general and, contract upgrade and notary change.Notary change transactions only modify the notary field on states, and potentially need to be handleddifferently.
public java.util.Set<net.corda.core.contracts.StateAndRef> component5()
public Vault.Update<U> copy(java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> consumed, java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> produced, java.util.UUID flowId, Vault.UpdateType type, java.util.Set<? extends net.corda.core.contracts.StateAndRef<? extends U>> references)
Represents an update observed by the vault that will be notified to observers. Include the class StateRef
s of
transaction outputs that were consumed (inputs) and the interface ContractState
s produced (outputs) to/by the transaction
or transactions observed and the vault.
If the vault observes multiple transactions simultaneously, where some transactions consume the outputs of some of the other transactions observed, then the changes are observed "net" of those.
class StateRef
,
interface ContractState
public int hashCode()
public boolean equals(java.lang.Object p)