squants.market

CurrencyExchangeRate

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

Since

0.1

Linear Supertypes
Serializable, Serializable, Product, Equals, Ratio[Money, Money], AnyRef, Any
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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

    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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    convert

  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val base: Money

    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
  9. def clone(): AnyRef

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

    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

    returns

  11. def convertToBase(q: Money): Money

    Definition Classes
    Ratio
  12. def convertToCounter(q: Money): Money

    Definition Classes
    Ratio
  13. val counter: Money

    the counter or "Variable" currency

    the counter or "Variable" currency

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

    Definition Classes
    AnyRef
  15. def finalize(): Unit

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

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

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

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def rate: Double

    returns

    Double the rate = counter / base

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

    Definition Classes
    AnyRef
  23. def toString(): String

    Returns the rate formatted in as standard FX Quote"

    Returns the rate formatted in as standard FX Quote"

    returns

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

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

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

    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