Ratios

class Ratios(val ratios: List<Percentage>) : AllocationBy(source)

Parameter type for proportional allocation.

Parameters

ratios

A list of Percentage. The sum of the list items must be equal to 100%.

Throws

When ratios contain elements with a negative value.

Constructors

Link copied to clipboard
constructor(vararg ratios: Percentage)

Creates a Ratios instance with the given Percentage parameters.

constructor(ratios: List<Percentage>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String