public class BilateralNetState<P> implements NetState<P>
Subset of state, containing the elements which must match for two obligation transactions to be nettable. If two obligation state objects produce equal bilateral net states, they are considered safe to net directly. Bilateral states are used in close-out netting.
Constructor and Description |
---|
BilateralNetState(java.util.Set<? extends net.corda.core.identity.AbstractParty> partyKeys,
Obligation.Terms<P> template)
Subset of state, containing the elements which must match for two obligation transactions to be nettable.
If two obligation state objects produce equal bilateral net states, they are considered safe to net directly.
Bilateral states are used in close-out netting.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<net.corda.core.identity.AbstractParty> |
component1() |
Obligation.Terms<P> |
component2() |
BilateralNetState<P> |
copy(java.util.Set<? extends net.corda.core.identity.AbstractParty> partyKeys,
Obligation.Terms<P> template)
Subset of state, containing the elements which must match for two obligation transactions to be nettable.
If two obligation state objects produce equal bilateral net states, they are considered safe to net directly.
Bilateral states are used in close-out netting.
|
boolean |
equals(java.lang.Object p) |
java.util.Set<net.corda.core.identity.AbstractParty> |
getPartyKeys() |
Obligation.Terms<P> |
getTemplate() |
int |
hashCode() |
java.lang.String |
toString() |
getTemplate
public BilateralNetState(java.util.Set<? extends net.corda.core.identity.AbstractParty> partyKeys, Obligation.Terms<P> template)
Subset of state, containing the elements which must match for two obligation transactions to be nettable. If two obligation state objects produce equal bilateral net states, they are considered safe to net directly. Bilateral states are used in close-out netting.
public java.util.Set<net.corda.core.identity.AbstractParty> getPartyKeys()
public Obligation.Terms<P> getTemplate()
public java.util.Set<net.corda.core.identity.AbstractParty> component1()
public Obligation.Terms<P> component2()
public BilateralNetState<P> copy(java.util.Set<? extends net.corda.core.identity.AbstractParty> partyKeys, Obligation.Terms<P> template)
Subset of state, containing the elements which must match for two obligation transactions to be nettable. If two obligation state objects produce equal bilateral net states, they are considered safe to net directly. Bilateral states are used in close-out netting.
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)