public static class LedgerTransaction.InOutGroup<T extends ContractState,K>
A set of related inputs and outputs that are connected by some common attributes. An InOutGroup is calculated
using groupStates
and is useful for handling cases where a transaction may contain similar but unrelated
state evolutions, for example, a transaction that moves cash in two different currencies. The numbers must add
up on both sides of the transaction, but the values must be summed independently per currency. Grouping can
be used to simplify this logic.
groupStates
public InOutGroup(@NotNull java.util.List<? extends T> inputs, @NotNull java.util.List<? extends T> outputs, @NotNull K groupingKey)
A set of related inputs and outputs that are connected by some common attributes. An InOutGroup is calculated
using groupStates
and is useful for handling cases where a transaction may contain similar but unrelated
state evolutions, for example, a transaction that moves cash in two different currencies. The numbers must add
up on both sides of the transaction, but the values must be summed independently per currency. Grouping can
be used to simplify this logic.
groupStates
@NotNull public java.util.List<T> getInputs()
@NotNull public java.util.List<T> getOutputs()
@NotNull public K getGroupingKey()
@NotNull public java.util.List<T> component1()
@NotNull public java.util.List<T> component2()
@NotNull public K component3()
@NotNull public net.corda.core.transactions.LedgerTransaction.InOutGroup<T,K> copy(@NotNull java.util.List<? extends T> inputs, @NotNull java.util.List<? extends T> outputs, @NotNull K groupingKey)
A set of related inputs and outputs that are connected by some common attributes. An InOutGroup is calculated
using groupStates
and is useful for handling cases where a transaction may contain similar but unrelated
state evolutions, for example, a transaction that moves cash in two different currencies. The numbers must add
up on both sides of the transaction, but the values must be summed independently per currency. Grouping can
be used to simplify this logic.
groupStates
@NotNull public java.lang.String toString()
A set of related inputs and outputs that are connected by some common attributes. An InOutGroup is calculated
using groupStates
and is useful for handling cases where a transaction may contain similar but unrelated
state evolutions, for example, a transaction that moves cash in two different currencies. The numbers must add
up on both sides of the transaction, but the values must be summed independently per currency. Grouping can
be used to simplify this logic.
groupStates
public int hashCode()
A set of related inputs and outputs that are connected by some common attributes. An InOutGroup is calculated
using groupStates
and is useful for handling cases where a transaction may contain similar but unrelated
state evolutions, for example, a transaction that moves cash in two different currencies. The numbers must add
up on both sides of the transaction, but the values must be summed independently per currency. Grouping can
be used to simplify this logic.
groupStates
public boolean equals(@Nullable java.lang.Object p)
A set of related inputs and outputs that are connected by some common attributes. An InOutGroup is calculated
using groupStates
and is useful for handling cases where a transaction may contain similar but unrelated
state evolutions, for example, a transaction that moves cash in two different currencies. The numbers must add
up on both sides of the transaction, but the values must be summed independently per currency. Grouping can
be used to simplify this logic.
groupStates