MoneyKt

public final class MoneyKt


Summary

Public methods

static final @NonNull Money
money(@NonNull String currencyCode, long units, int nanos)

Builds a new Money.

Public methods

money

public static final @NonNull Money money(@NonNull String currencyCode, long units, int nanos)

Builds a new Money.

Parameters
@NonNull String currencyCode

the three-letter currency code defined in ISO 4217

long units

the whole units of the amount

int nanos

the number of nano (1e-9) units of the amount

Returns
@NonNull Money

the constructed Money