Class

com.quantarray.skylark.measure

Quantity

Related Doc: package measure

Permalink

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

Quantity.

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

Instance Constructors

  1. new Quantity(value: N, measure: M)(implicit qn: QuasiNumeric[N])

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *[M2 <: Measure[M2], R <: Measure[R]](quantity: Quantity[N, M2])(implicit cm: CanMultiply[M, M2, R]): Quantity[N, R]

    Permalink
  4. def *(constant: Double): Quantity[N, M]

    Permalink
    Definition Classes
    QuantityAnyQuantity
  5. def *(quantity: AnyQuantity[N])(implicit cm: CanMultiply[AnyMeasure, AnyMeasure, AnyMeasure]): AnyQuantity[N]

    Permalink
    Definition Classes
    AnyQuantity
  6. def +[M2 <: Measure[M2]](quantity: Quantity[N, M2])(implicit caq: CanAddQuantity[N, M, Quantity[N, M], M2, Quantity[N, M2], M], cc1: CanConvert[M, M], cc2: CanConvert[M2, M]): QR

    Permalink

    Adds another quantity.

    Adds another quantity. CanAdd instance allows addition of apples and oranges to obtain bananas.

  7. def +(quantity: AnyQuantity[N])(implicit caq: CanAddAnyQuantity[N, AnyQuantity[N], AnyQuantity[N]], cc: CanConvert[AnyMeasure, AnyMeasure]): QR

    Permalink
    Definition Classes
    AnyQuantity
  8. def -[M2 <: Measure[M2]](quantity: Quantity[N, M2])(implicit caq: CanAddQuantity[N, M, Quantity[N, M], M2, Quantity[N, M2], M], cc1: CanConvert[M, M], cc2: CanConvert[M2, M]): QR

    Permalink

    Subtracts another quantity.

    Subtracts another quantity. CanAdd instance allows addition of apples and oranges to obtain bananas.

  9. def -(quantity: AnyQuantity[N])(implicit caq: CanAddAnyQuantity[N, AnyQuantity[N], AnyQuantity[N]], cc: CanConvert[AnyMeasure, AnyMeasure]): QR

    Permalink
    Definition Classes
    AnyQuantity
  10. def /[M2 <: Measure[M2], R <: Measure[R]](quantity: Quantity[N, M2])(implicit cd: CanDivide[M, M2, R]): Quantity[N, R]

    Permalink
  11. def /(constant: Double): Quantity[N, M]

    Permalink
    Definition Classes
    QuantityAnyQuantity
  12. def /(quantity: AnyQuantity[N])(implicit cd: CanDivide[AnyMeasure, AnyMeasure, AnyMeasure]): AnyQuantity[N]

    Permalink
    Definition Classes
    AnyQuantity
  13. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def ^[R <: Measure[R]](exponent: Double)(implicit ce: CanExponentiate[M, R]): Quantity[N, R]

    Permalink
  15. def ^(exponent: Double)(implicit ce: CanExponentiate[AnyMeasure, AnyMeasure]): AnyQuantity[N]

    Permalink
    Definition Classes
    AnyQuantity
  16. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  17. def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    AnyQuantity → Equals
  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(obj: Any): Boolean

    Permalink
    Definition Classes
    AnyQuantity → Equals → AnyRef → Any
  21. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  25. val measure: M

    Permalink
    Definition Classes
    QuantityAnyQuantity
  26. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  29. val productArity: Int

    Permalink
    Definition Classes
    AnyQuantity → Product
  30. def productElement(n: Int): Any

    Permalink
    Definition Classes
    AnyQuantity → Product
  31. def simplify[R <: Measure[R]](implicit cs: CanSimplify[M, Option[R]]): Option[Quantity[N, R]]

    Permalink
  32. def simplify(implicit cs: CanSimplify[AnyMeasure, AnyMeasure]): AnyQuantity[N]

    Permalink
    Definition Classes
    AnyQuantity
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def to[M2 <: Measure[M2]](target: M2)(implicit cc: CanConvert[M, M2]): Option[Quantity[N, M2]]

    Permalink
  35. def to(target: AnyMeasure)(implicit cc: CanConvert[AnyMeasure, AnyMeasure]): Option[AnyQuantity[N]]

    Permalink
    Definition Classes
    AnyQuantity
  36. def toOrElse[M2 <: Measure[M2], B >: Quantity[N, M2]](target: M2, default: B)(implicit cc: CanConvert[M, M2]): B

    Permalink
  37. def toOrElse[B >: AnyQuantity[N]](target: AnyMeasure, default: B)(implicit cc: CanConvert[AnyMeasure, AnyMeasure]): B

    Permalink
    Definition Classes
    AnyQuantity
  38. def toString(): String

    Permalink
    Definition Classes
    QuantityAnyQuantity → AnyRef → Any
  39. def unary_-(): Quantity[N, M]

    Permalink
    Definition Classes
    QuantityAnyQuantity
  40. val value: N

    Permalink
    Definition Classes
    QuantityAnyQuantity
  41. final def wait(): Unit

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

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

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

Inherited from AnyQuantity[N]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped