public class FungibleAssetKt
Modifier and Type | Method and Description |
---|---|
static <T> Amount<net.corda.core.contracts.Issued> |
sumFungibleOrNull(java.lang.Iterable<? extends net.corda.core.contracts.ContractState> $receiver)
Sums the asset states in the list, returning null if there are none.
|
static <T> Amount<net.corda.core.contracts.Issued> |
sumFungibleOrZero(java.lang.Iterable<? extends net.corda.core.contracts.ContractState> $receiver,
Issued<? extends T> token)
Sums the asset states in the list, returning zero of the given token if there are none.
|
public static <T> Amount<net.corda.core.contracts.Issued> sumFungibleOrNull(java.lang.Iterable<? extends net.corda.core.contracts.ContractState> $receiver)
Sums the asset states in the list, returning null if there are none.