Package

com.lambdista

money

Permalink

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
Visibility
  1. Public
  2. All

Type Members

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

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

    Permalink

    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

    Permalink

    Generic Currency

    Generic Currency

    Since

    2014-10-27

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

    Permalink

    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

  5. class NumericMoney extends Numeric[Money]

    Permalink

    Numeric implementation for com.lambdista.money.Money

    Numeric implementation for com.lambdista.money.Money

    Since

    2015-06-18

Value Members

  1. object Currency

    Permalink
  2. val DEFAULT_CURRENCY: USD.type

    Permalink
  3. package syntax

    Permalink

    Implicits for this DSL.

    Implicits for this DSL.

    Since

    2015-04-01

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

    Permalink

    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