corda / net.corda.core.contracts / SourceAndAmount

SourceAndAmount

data class SourceAndAmount<T : Any, out P : Any>

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.

Constructors

<init>

Simple data class to associate the origin, owner, or holder of a particular Amount object.

SourceAndAmount(source: P, amount: Amount<T>, ref: Any? = null)

Properties

amount

the Amount of asset available.

val amount: Amount<T>

ref

is an optional field used for housekeeping in the caller. e.g. to point back at the original Vault state objects.

val ref: Any?

source

the holder of the Amount.

val source: P