Class

squants.market

Currency

Related Doc: package market

Permalink

abstract class Currency extends UnitOfMeasure[Money]

Represents a Currency, which is the Unit of Measure for Money

Source
Money.scala
Linear Supertypes
UnitOfMeasure[Money], Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Currency
  2. UnitOfMeasure
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Currency(code: String, name: String, symbol: String, formatDecimals: Int)

    Permalink

    code

    Currency code

    name

    Currency name

    symbol

    Currency symbol

    formatDecimals

    Number of decimals in standard formatting

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def /(that: Money): CurrencyExchangeRate

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

    Permalink
    Definition Classes
    AnyRef → Any
  5. def apply(d: BigDecimal): Money

    Permalink
  6. def apply[A](n: A)(implicit num: Numeric[A]): Money

    Permalink

    Factory method for creating instances of a Quantity in this UnitOfMeasure

    Factory method for creating instances of a Quantity in this UnitOfMeasure

    n

    N - the Quantity's value in terms of this UnitOfMeasure

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

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val code: String

    Permalink

    Currency code

  10. final def convertFrom[N](n: N)(implicit num: Numeric[N]): Double

    Permalink

    Applies the converterFrom method to a value

    Applies the converterFrom method to a value

    N

    Type

    n

    N value in terms of this Unit

    num

    Numeric[N]

    Definition Classes
    UnitOfMeasure
  11. final def convertTo[N](n: N)(implicit num: Numeric[N]): Double

    Permalink

    Applies the converterTo method to a value

    Applies the converterTo method to a value

    N

    Type

    n

    N value in terms of teh ValueUnit

    num

    Numeric[N]

    Definition Classes
    UnitOfMeasure
  12. def converterFrom: (Double) ⇒ Double

    Permalink

    Defines a signature for converting a quantity from this UOM to the Value UOM

    Defines a signature for converting a quantity from this UOM to the Value UOM

    Attributes
    protected
    Definition Classes
    CurrencyUnitOfMeasure
  13. def converterTo: (Double) ⇒ Double

    Permalink

    Defines a signature for converting a quantity to this UOM from the Value UOM

    Defines a signature for converting a quantity to this UOM from the Value UOM

    Attributes
    protected
    Definition Classes
    CurrencyUnitOfMeasure
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. val formatDecimals: Int

    Permalink

    Number of decimals in standard formatting

  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  21. val name: String

    Permalink

    Currency name

  22. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  25. val symbol: String

    Permalink

    Currency symbol

    Currency symbol

    Definition Classes
    CurrencyUnitOfMeasure
  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. def unapply(q: Money): Some[Double]

    Permalink

    Extractor method for getting the Numeric value of a Quantity in this UnitOfMeasure

    Extractor method for getting the Numeric value of a Quantity in this UnitOfMeasure

    q

    A - The Quantity being matched

    Definition Classes
    UnitOfMeasure
  29. final def wait(): Unit

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

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

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

Inherited from UnitOfMeasure[Money]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped