applyDifferenceOnValue

open override fun applyDifferenceOnValue(difference: Money, value: Money, allocations: List<Money>): List<Money>(source)

Apply the difference in a specific value in the allocations list.

Return

The allocation result.

Parameters

difference

A Money amount representing the difference to allocate in the allocations list.

value

The value in allocations to apply the difference.

allocations

The allocations list.