com.lambdista

money

package money

This package object contains utility functions and type aliases

Since

2014-10-27

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. money
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Conversion = Map[(Currency, Currency), BigDecimal]

  2. case class Converter(conversion: Conversion) extends Product with Serializable

    This class is responsible for performing Currency conversions.

    This class is responsible for performing Currency conversions.

    Since

    2015-03-07

  3. trait Currency extends AnyRef

    Generic Currency

    Generic Currency

    Since

    2014-10-27

  4. case class Money(amount: BigDecimal, currency: Currency)(implicit converter: Converter) extends Product with Serializable

    This is the main class of the lib.

    This is the main class of the lib. A Money is represented by its amount and currency.

    amount

    the amount of this money

    currency

    the currency for this money

    converter

    the Converter to use

    Since

    2014-10-27

Value Members

  1. object Currency

  2. package syntax

    Implicits for this DSL.

    Implicits for this DSL.

    Since

    2015-04-01

  3. def toFormattedString(value: BigDecimal, decimalDigits: Int = 5, roundingMode: RoundingMode = RoundingMode.HALF_DOWN): String

    Formats the BigDecimal value using a number of decimal digits equals to the decimalDigits param, which defaults to 5.

    Formats the BigDecimal value using a number of decimal digits equals to the decimalDigits param, which defaults to 5.

    value

    the BigDecimal value to format

    decimalDigits

    the number of decimal digits to include. The valid range is [0, 100], both inclusive

    returns

    a formatted string representing the value passed as a parameter

Inherited from AnyRef

Inherited from Any

Ungrouped