SignBasedAllocation

Allocates the Money difference according to its sign. Positive values are allocated according to positiveAllocator, whereas negative values are allocated by negativeAllocator.

Inheritors

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.