squants.market

Currency

case class Currency(code: String, name: String, symbol: String, formatDecimals: Int) extends UnitOfMeasure[Money] with Product with Serializable

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

code

Currency code

name

Currency name

symbol

Currency symbol

formatDecimals

Number of decimals in standard formatting

Linear Supertypes
Product, Equals, UnitOfMeasure[Money], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Currency
  2. Product
  3. Equals
  4. UnitOfMeasure
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

    code

    Currency code

    name

    Currency name

    symbol

    Currency symbol

    formatDecimals

    Number of decimals in standard formatting

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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. def apply(d: BigDecimal): Money

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

    Factory method for creating instances of a Quantity in this UnitOfMeasure

    Factory method for creating instances of a Quantity in this UnitOfMeasure

    n

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

    returns

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

    Definition Classes
    Any
  9. def clone(): AnyRef

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

    Currency code

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

    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]

    returns

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

    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]

    returns

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

    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

    returns

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

    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

    returns

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

    Definition Classes
    AnyRef
  16. def finalize(): Unit

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

    Number of decimals in standard formatting

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

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

    Definition Classes
    Any
  20. val name: String

    Currency name

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

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

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

    Definition Classes
    AnyRef
  24. val symbol: String

    Currency symbol

    Currency symbol

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

    Definition Classes
    AnyRef
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from UnitOfMeasure[Money]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped