Package-level declarations

Strategies for allocating the difference generated by the allocation operation.

Types

Link copied to clipboard

Allocates a Money difference in the allocations list.

Link copied to clipboard

Discards the Money difference.

Link copied to clipboard

Allocates the Money difference by distributing every unit of it according to allocator. For example, a difference of USD 0.03 will be allocated by distributing USD 0.01 three times.

Link copied to clipboard

Allocates the Money difference by distributing every unit of it according to allocator.

Link copied to clipboard
class DistributeBySign(positiveAllocator: DifferenceAllocation, negativeAllocator: DifferenceAllocation) : SignBasedAllocation

Allocates the Money difference according to its sign by distributing its difference units.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Allocates a negative Money difference on the first item with the greatest value in the allocations list. Otherwise, distributes the difference on the last item with the smallest value in the allocations list.

Link copied to clipboard

Allocates the Money difference on the first item in the allocations list.

Link copied to clipboard

Allocates the Money difference on the first item with the greatest value in the allocations list.

Link copied to clipboard

Allocates the Money difference on the first item of non-zero value in the allocations list. If only zero values are available, allocates to the first item.

Link copied to clipboard

Allocates the Money difference on the first item with the smallest value in the allocations list.

Link copied to clipboard

Allocates the Money difference on the first item with a specific value in the allocations list.

Link copied to clipboard

Allocates the Money difference on the item with the greatest value in the allocations list.

Link copied to clipboard

Allocates the Money difference on the last item in the allocations list.

Link copied to clipboard

Allocates the Money difference on the last item with the greatest value in the allocations list.

Link copied to clipboard

Allocates the Money difference on the last item of non-zero value in the allocations list. If only zero values are available, allocates to the last item.

Link copied to clipboard

Allocates the Money difference on the last item with the smallest value in the allocations list.

Link copied to clipboard

Allocates the Money difference on the last item with a specific value in the allocations list.

Link copied to clipboard

Allocates the Money difference on the item with the smallest value in the allocations list.

Link copied to clipboard

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

Link copied to clipboard

Allocates a positive Money difference on the first item with the greatest value in the allocations list. Otherwise, distributes the difference on the last item with the smallest value in the allocations list.

Link copied to clipboard

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

Link copied to clipboard

Allocates the Money difference in a specific value in the allocations list.