Source And Amount
data class SourceAndAmount<T : Any, out P : Any>(val source: P, val amount: Amount<T>, val ref: Any? = null)
Simple data class to associate the origin, owner, or holder of a particular Amount object.
Parameters
P
Any class type that can disambiguate where the amount came from.
T
The token type of the underlying Amount.
See also
Source And Amount. apply
which processes a list of SourceAndAmount objects and calculates the resulting Amount distribution as a new list of SourceAndAmount objects.