Non Empty Set
An immutable ordered non-empty set.
Functions
Returns the set of all PublicKeys of the signatures.
Filters a list of StateAndRef objects according to the type of the states
Ensures that a transaction has only one command that is of the given type, otherwise throws an exception.
Filters the command list by type, party and public key all at once.
Filters the command list by type, parties and public keys all at once.
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).
Sums the cash states in the list, returning null if there are none.
Sums the cash states in the list, returning zero of the given currency+issuer if there are none.
Sums the asset states in the list, returning null if there are none.
Sums the asset states in the list, returning zero of the given token if there are none.
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.
Sums the obligation states in the list, returning null if there are none.
Sums the obligation states in the list, returning zero of the given product if there are none.
Sums the amounts yielded by the given iterable, throwing an IllegalArgumentException if any of the token types are mismatched.
If all of the given futures succeed, the returned future's outcome is a list of all their values. The values are in the same order as the futures in the collection, not the order of completion. If at least one given future fails, the returned future's outcome is the first throwable that was thrown. Any subsequent throwables are added to the first one as suppressed throwables, in the order they are thrown. If no futures were given, the returned future has an immediate outcome of empty list. Otherwise the returned future does not have an outcome until all given futures have an outcome. Unlike Guava's Futures.allAsList, this method never hides failures/hangs subsequent to the first failure.