public class StateSumming
@NotNull public static Amount<net.corda.core.contracts.Issued> sumCashBy(@NotNull java.lang.Iterable<? extends net.corda.core.contracts.ContractState> $this$sumCashBy, @NotNull AbstractParty owner)
Sums the cash states in the list belonging to a single owner, throwing an exception if there are none, or if any of the cash states cannot be added together (i.e. are different currencies or issuers).
@NotNull public static Amount<net.corda.core.contracts.Issued> sumCash(@NotNull java.lang.Iterable<? extends net.corda.core.contracts.ContractState> $this$sumCash)
Sums the cash states in the list, throwing an exception if there are none, or if any of the cash states cannot be added together (i.e. are different currencies or issuers).
@Nullable public static Amount<net.corda.core.contracts.Issued> sumCashOrNull(@NotNull java.lang.Iterable<? extends net.corda.core.contracts.ContractState> $this$sumCashOrNull)
Sums the cash states in the list, returning null if there are none.
@NotNull public static Amount<net.corda.core.contracts.Issued> sumCashOrZero(@NotNull java.lang.Iterable<? extends net.corda.core.contracts.ContractState> $this$sumCashOrZero, @NotNull Issued<java.util.Currency> currency)
Sums the cash states in the list, returning zero of the given currency+issuer if there are none.
@Nullable public static <T> Amount<net.corda.core.contracts.Issued> sumFungibleOrNull(@NotNull java.lang.Iterable<? extends net.corda.core.contracts.ContractState> $this$sumFungibleOrNull)
Sums the asset states in the list, returning null if there are none.
@NotNull public static <T> Amount<net.corda.core.contracts.Issued> sumFungibleOrZero(@NotNull java.lang.Iterable<? extends net.corda.core.contracts.ContractState> $this$sumFungibleOrZero, @NotNull Issued<? extends T> token)
Sums the asset states in the list, returning zero of the given token if there are none.
@NotNull public static <P> Amount<net.corda.core.contracts.Issued> sumObligations(@NotNull java.lang.Iterable<? extends net.corda.core.contracts.ContractState> $this$sumObligations)
Sums the obligation states in the list, throwing an exception if there are none. All state objects in the list are presumed to be nettable.
@Nullable public static <P> Amount<net.corda.core.contracts.Issued> sumObligationsOrNull(@NotNull java.lang.Iterable<? extends net.corda.core.contracts.ContractState> $this$sumObligationsOrNull)
Sums the obligation states in the list, returning null if there are none.
@NotNull public static <P> Amount<net.corda.core.contracts.Issued> sumObligationsOrZero(@NotNull java.lang.Iterable<? extends net.corda.core.contracts.ContractState> $this$sumObligationsOrZero, @NotNull Issued<net.corda.finance.contracts.asset.Obligation.Terms> issuanceDef)
Sums the obligation states in the list, returning zero of the given product if there are none.