corda / net.corda.core.contracts / SourceAndAmount / <init>

<init>

SourceAndAmount(source: P, amount: Amount<T>, 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.