Class

squants.market

Price

Related Doc: package market

Permalink

case class Price[A <: Quantity[A]](money: Money, quantity: A) extends Ratio[Money, A] with Serializable with Product

Represents a price

A price is an squants.Ratio between a quantity of squants.market.Money and some other squants.Quantity

A

Quantity Type

money

Money

quantity

Quantity

Source
Price.scala
Since

0.1

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

Instance Constructors

  1. new Price(money: Money, quantity: A)

    Permalink

    money

    Money

    quantity

    Quantity

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: A): Money

    Permalink

    Returns the Cost (Money) for a quantity that of A

    Returns the Cost (Money) for a quantity that of A

    that

    Quantity

  4. def *(that: BigDecimal): Price[A]

    Permalink
  5. def *(that: Double): Price[A]

    Permalink
  6. def +(that: Price[A]): Price[A]

    Permalink
  7. def -(that: Price[A]): Price[A]

    Permalink
  8. def /(that: Price[A]): BigDecimal

    Permalink
  9. def /(that: BigDecimal): Price[A]

    Permalink
  10. def /(that: Double): Price[A]

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

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

    Permalink
    Definition Classes
    Any
  13. def base: Money

    Permalink
    Definition Classes
    PriceRatio
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def convertToBase(q: A): Money

    Permalink
    Definition Classes
    Ratio
  16. def convertToCounter(q: Money): A

    Permalink
    Definition Classes
    Ratio
  17. def counter: A

    Permalink
    Definition Classes
    PriceRatio
  18. def divide(that: Price[A]): BigDecimal

    Permalink
  19. def divide(that: BigDecimal): Price[A]

    Permalink
  20. def divide(that: Double): Price[A]

    Permalink
  21. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. def in(currency: Currency)(implicit moneyContext: MoneyContext): Price[A]

    Permalink
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def minus(that: Price[A]): Price[A]

    Permalink
  27. val money: Money

    Permalink

    Money

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

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

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

    Permalink
    Definition Classes
    AnyRef
  31. def plus(that: Price[A]): Price[A]

    Permalink
  32. val quantity: A

    Permalink

    Quantity

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

    Permalink
    Definition Classes
    AnyRef
  34. def times(that: BigDecimal): Price[A]

    Permalink
  35. def times(that: Double): Price[A]

    Permalink
  36. def toString(currency: Currency, unit: UnitOfMeasure[A])(implicit moneyContext: MoneyContext): String

    Permalink
  37. def toString(unit: UnitOfMeasure[A]): String

    Permalink
  38. def toString(): String

    Permalink
    Definition Classes
    Price → AnyRef → Any
  39. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. def *(that: Money): A

    Permalink

    Returns the Quantity that will cost that)

    Returns the Quantity that will cost that)

    that

    Money

    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.3) Use money / price instead

Inherited from Product

Inherited from Equals

Inherited from Serializable

Inherited from Serializable

Inherited from Ratio[Money, A]

Inherited from AnyRef

Inherited from Any

Ungrouped