allocate

open override fun allocate(money: Money, by: T): Result(source)

Allocates a Money.

Return

A Result with the allocation result.

Parameters

money

The Money amount to allocate according to by.

by

The parameter to calculate the allocations.

Throws

When by is not supported.