IndexBasedAllocation

Allocates the Money difference on a specific index in the allocations list.

Inheritors

Functions

Link copied to clipboard
abstract fun allocate(difference: Money, allocations: List<Money>): List<Money>

Allocates the difference in the allocations list.

Link copied to clipboard
open fun applyDifferenceAtIndex(    difference: Money,     index: Int,     allocations: List<Money>): List<Money>

Apply the difference in the specific index of the allocations list.