# Quantity

### Related Doc: package measure

#### case class Quantity[N, M](value: N, measure: M)(implicit qn: QuasiNumeric[N]) extends Product with Serializable

Quantity.

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

### Value Members

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

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

Definition Classes
AnyRef → Any
3. #### def *[M2, R](quantity: Quantity[N, M2])(implicit cmq: CanMultiplyQuantity[N, M, Quantity, M2, Quantity, R]): QR

Multiplies by another quantity.

7. #### def -[M2](quantity: Option[Quantity[N, M2]])(implicit caq: CanAddQuantity[N, M, Quantity, M2, Option[Quantity[N, M2]], M], cc1: CanConvert[M, M], cc2: CanConvert[M2, M]): QR

Subtracts another Option[Quantity].

Subtracts another Option[Quantity]. CanAddQuantity instance allows subtraction of apples and oranges to obtain bananas.

8. #### def -[M2](quantity: Quantity[N, M2])(implicit caq: CanAddQuantity[N, M, Quantity, M2, Quantity[N, M2], M], cc1: CanConvert[M, M], cc2: CanConvert[M2, M]): QR

Subtracts another Quantity.

Subtracts another Quantity. CanAddQuantity instance allows subtraction of apples and oranges to obtain bananas.

9. #### def /[M2, R](quantity: Quantity[N, M2])(implicit cdq: CanDivideQuantity[N, M, Quantity, M2, Quantity, R]): QR

Divides by another quantity.

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

Definition Classes
AnyRef → Any
12. #### def ^[R](exponent: Double)(implicit ceq: CanExponentiateQuantity[N, M, Quantity, R]): QR

Raises this quantity to expoenent.

13. #### final def asInstanceOf[T0]: T0

Definition Classes
Any
14. #### def clone(): AnyRef

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( ... )
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. #### final def getClass(): Class[_]

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

Definition Classes
Any

20. #### final def ne(arg0: AnyRef): Boolean

Definition Classes
AnyRef
21. #### final def notify(): Unit

Definition Classes
AnyRef
22. #### final def notifyAll(): Unit

Definition Classes
AnyRef

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

Definition Classes
AnyRef
25. #### def to[M2](target: M2)(implicit cc: CanConvert[M, M2]): Option[Quantity[N, M2]]

Converts this quantity to another.

26. #### def toOrElse[M2, B >: Quantity[N, M2]](target: M2, default: B)(implicit cc: CanConvert[M, M2]): B

Convert this quantity to another or default.

Convert this quantity to another or default.

Annotations
@inline()
27. #### def toString(): String

Definition Classes
Quantity → AnyRef → Any

30. #### final def wait(): Unit

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

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

Definition Classes
AnyRef
Annotations
@throws( ... )