PositiveOnFirst

Allocates a positive Money difference on the first item of the allocations list. Otherwise, allocates on the last non-zero value of the list.

Properties

Link copied to clipboard

The DifferenceAllocation instance to allocate a negative difference value.

Link copied to clipboard

The DifferenceAllocation instance to allocate a positive difference value.

Functions

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

Allocates the difference in the allocations list.