Class

squants.market

CurrencyExchangeRate

Related Doc: package market

Permalink

case class CurrencyExchangeRate(base: Money, counter: Money) extends Ratio[Money, Money] with Product with Serializable

Represent the rate of exchange between two currencies

base

the base or "Fixed" currency (usually a value of 1 currency unit, but not required)

counter

the counter or "Variable" currency

Source
CurrencyExchangeRate.scala
Since

0.1

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CurrencyExchangeRate
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Ratio
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CurrencyExchangeRate(base: Money, counter: Money)

    Permalink

    base

    the base or "Fixed" currency (usually a value of 1 currency unit, but not required)

    counter

    the counter or "Variable" currency

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *(money: Money): Money

    Permalink

    convert

  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val base: Money

    Permalink

    the base or "Fixed" currency (usually a value of 1 currency unit, but not required)

    the base or "Fixed" currency (usually a value of 1 currency unit, but not required)

    Definition Classes
    CurrencyExchangeRateRatio
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def convert(money: Money): Money

    Permalink

    Converts the given money into the other currency of this exchange rate

    Converts the given money into the other currency of this exchange rate

    money

    Money

  9. def convertToBase(m: Money): Money

    Permalink

    Override methods from Ratio to ensure BigDecimal precision math is applied

    Override methods from Ratio to ensure BigDecimal precision math is applied

    m

    Money

    Definition Classes
    CurrencyExchangeRateRatio
  10. def convertToCounter(m: Money): Money

    Permalink
    Definition Classes
    CurrencyExchangeRateRatio
  11. val counter: Money

    Permalink

    the counter or "Variable" currency

    the counter or "Variable" currency

    Definition Classes
    CurrencyExchangeRateRatio
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def rate: Double

    Permalink

    returns

    Double the rate = counter / base

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink

    Returns the rate formatted in as standard FX Quote"

    Returns the rate formatted in as standard FX Quote"

    Definition Classes
    CurrencyExchangeRate → AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ratio[Money, Money]

Inherited from AnyRef

Inherited from Any

Ungrouped