squants.energy

Energy

final class Energy extends Quantity[Energy] with PhysicalQuantity with TimeIntegral[Power]

Represents a quantity of energy

Since

0.1

Linear Supertypes
TimeIntegral[Power], PhysicalQuantity, Quantity[Energy], Serializable, Serializable, Ordered[Energy], Comparable[Energy], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Energy
  2. TimeIntegral
  3. PhysicalQuantity
  4. Quantity
  5. Serializable
  6. Serializable
  7. Ordered
  8. Comparable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. def %(that: Energy): Double

    Definition Classes
    Quantity
  5. def %(that: Double): Energy

    Definition Classes
    Quantity
  6. def *(that: Double): Energy

    Definition Classes
    Quantity
  7. def +(that: Energy): Energy

    Definition Classes
    Quantity
  8. def +-(that: Energy): QuantityRange[Energy]

    Definition Classes
    Quantity
  9. def -(that: Energy): Energy

    Definition Classes
    Quantity
  10. def /(that: Angle): Nothing

  11. def /(that: mass.ChemicalAmount): Nothing

  12. def /(that: ThermalCapacity): Kelvin

  13. def /(that: Temperature): ThermalCapacity

  14. def /(that: ElectricPotential): ElectricCharge

  15. def /(that: ElectricCharge): ElectricPotential

  16. def /(that: EnergyDensity): Volume

  17. def /(that: Volume): EnergyDensity

  18. def /(that: SpecificEnergy): Mass

  19. def /(that: Mass): SpecificEnergy

  20. def /(that: Force): Length

  21. def /(that: Length): Force

  22. def /(that: Power): time.Time

    Returns the amount time required to achieve the given change in the Derivative

    Returns the amount time required to achieve the given change in the Derivative

    that

    Derivative

    returns

    Definition Classes
    EnergyTimeIntegral
  23. def /(that: time.Time): Power

    Returns the Time Derivative which represents a change of the underlying quantity equal to this quantity over the given time.

    Returns the Time Derivative which represents a change of the underlying quantity equal to this quantity over the given time.

    that

    Time

    returns

    Definition Classes
    EnergyTimeIntegral
  24. def /(that: Energy): Double

    Definition Classes
    Quantity
  25. def /(that: Double): Energy

    Definition Classes
    Quantity
  26. def /%(that: Energy): (Double, Energy)

    Definition Classes
    Quantity
  27. def /%(that: Double): (Energy, Energy)

    Definition Classes
    Quantity
  28. def <(that: Energy): Boolean

    Definition Classes
    Ordered
  29. def <=(that: Energy): Boolean

    Definition Classes
    Ordered
  30. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  32. def =~(that: Energy)(implicit tolerance: Energy): Boolean

    approx

    approx

    Definition Classes
    Quantity
  33. def >(that: Energy): Boolean

    Definition Classes
    Ordered
  34. def >=(that: Energy): Boolean

    Definition Classes
    Ordered
  35. def abs: Energy

    Returns the absolute value of this Quantity

    Returns the absolute value of this Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  36. def approx(that: Energy)(implicit tolerance: Energy): Boolean

    Returns boolean result of approximate equality comparison

    Returns boolean result of approximate equality comparison

    that

    Quantity

    tolerance

    Quantity

    returns

    Definition Classes
    Quantity
  37. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  38. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def compare(that: Energy): Int

    Implements Ordered.

    Implements Ordered.compare

    that

    Quantity

    returns

    Int

    Definition Classes
    Quantity → Ordered
  40. def compareTo(that: Energy): Int

    Definition Classes
    Ordered → Comparable
  41. def divide(that: Energy): Double

    Divide this quantity by a like quantity

    Divide this quantity by a like quantity

    that

    Quantity

    returns

    Double

    Definition Classes
    Quantity
  42. def divide(that: Double): Energy

    Divide this quantity by some number

    Divide this quantity by some number

    that

    Double

    returns

    Quantity

    Definition Classes
    Quantity
  43. def divideAndRemainder(that: Energy): (Double, Energy)

    Returns a Pair that includes the result of divideToInteger and remainder

    Returns a Pair that includes the result of divideToInteger and remainder

    that

    Quantity

    returns

    (Double, Quantity)

    Definition Classes
    Quantity
  44. def divideAndRemainder(that: Double): (Energy, Energy)

    Returns a Pair that includes the result of divideToInteger and remainder

    Returns a Pair that includes the result of divideToInteger and remainder

    that

    Double

    returns

    (Quantity, Quantity)

    Definition Classes
    Quantity
  45. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  46. def equals(that: Any): Boolean

    Override of equals method

    Override of equals method

    that

    must be of matching value and unit

    returns

    Definition Classes
    Quantity → AnyRef → Any
  47. def finalize(): Unit

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

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

    Override of hashCode

    Override of hashCode

    returns

    Definition Classes
    Quantity → AnyRef → Any
  50. def in(unit: UnitOfMeasure[Energy]): Energy

    Returns an equivalent Quantity boxed with the supplied Unit

    Returns an equivalent Quantity boxed with the supplied Unit

    This is really only useful for Quantity classes that box at the UOM level e.g. Temperature and currently Time

    unit

    UnitOfMeasure[A]

    returns

    Quantity

    Definition Classes
    Quantity
  51. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  52. def max(that: Energy): Energy

    Returns the max of this and that Quantity

    Returns the max of this and that Quantity

    that

    Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  53. def min(that: Energy): Energy

    Returns the min of this and that Quantity

    Returns the min of this and that Quantity

    that

    Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  54. def minus(that: Energy): Energy

    Subtract two like quantities

    Subtract two like quantities

    that

    Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  55. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  56. def negate: Energy

    Returns the negative value of this Quantity

    Returns the negative value of this Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  57. def notWithin(range: QuantityRange[Energy]): Boolean

    Returns true if this value is not within (contains) the range

    Returns true if this value is not within (contains) the range

    range

    QuantityRange

    returns

    Boolean

    Definition Classes
    Quantity
  58. final def notify(): Unit

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

    Definition Classes
    AnyRef
  60. def plus(that: Energy): Energy

    Add two like quantities

    Add two like quantities

    that

    Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  61. def plusOrMinus(that: Energy): QuantityRange[Energy]

    Returns a QuantityRange representing the range for this value +- that

    Returns a QuantityRange representing the range for this value +- that

    that

    Quantity

    returns

    QuantityRange

    Definition Classes
    Quantity
  62. def remainder(that: Energy): Double

    Returns the remainder of a division by a like quantity

    Returns the remainder of a division by a like quantity

    that

    Quantity

    returns

    Double

    Definition Classes
    Quantity
  63. def remainder(that: Double): Energy

    Returns the remainder of a division by a number

    Returns the remainder of a division by a number

    that

    Quantity

    returns

    Quantity

    Definition Classes
    Quantity
  64. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  65. def times(that: Double): Energy

    Multiply this quantity by some number

    Multiply this quantity by some number

    that

    Double

    returns

    Quantity

    Definition Classes
    Quantity
  66. def to(unit: UnitOfMeasure[Energy]): Double

    Returns a Double representing the quantity in terms of the supplied unit

    Returns a Double representing the quantity in terms of the supplied unit

    val d = Feet(3)
    (d to Inches) should be(36)
    unit

    UnitOfMeasure[A]

    returns

    Double

    Definition Classes
    Quantity
  67. def to(that: Energy): QuantityRange[Energy]

    Returns a QuantityRange that goes from this to that

    Returns a QuantityRange that goes from this to that

    that

    Quantity

    returns

    QuantityRange

    Definition Classes
    Quantity
  68. def toBtus: Double

  69. def toGigajoules: Double

  70. def toGigawattHours: Double

  71. def toJoules: Double

  72. def toKilojoules: Double

  73. def toKilowattHours: Double

  74. def toMBtus: Double

  75. def toMMBtus: Double

  76. def toMegajoules: Double

  77. def toMegawattHours: Double

  78. def toMicrojoules: Double

  79. def toMillijoules: Double

  80. def toNanojoules: Double

  81. def toPicojoules: Double

  82. def toString(): String

    Returns a string representing the quantity's value in valueUnits

    Returns a string representing the quantity's value in valueUnits

    returns

    String

    Definition Classes
    EnergyQuantity → AnyRef → Any
  83. def toString(unit: UnitOfMeasure[Energy]): String

    Returns a string representing the quantity's value in the given unit

    Returns a string representing the quantity's value in the given unit

    unit

    UnitOfMeasure[A] with UnitConverter

    returns

    String

    Definition Classes
    Quantity
  84. def toTerajoules: Double

  85. def toWattHours: Double

  86. def unary_-(): Energy

    Definition Classes
    Quantity
  87. val value: Double

    value in squants.energy.WattHours

    Definition Classes
    EnergyQuantity
  88. def valueUnit: WattHours.type

    The Unit of Measure used for the quantity's underlying value

    The Unit of Measure used for the quantity's underlying value

    returns

    UnitOfMeasure[A]

    Definition Classes
    EnergyQuantity
  89. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. def within(range: QuantityRange[Energy]): Boolean

    Returns true if this value is within (contains) the range

    Returns true if this value is within (contains) the range

    range

    QuantityRange

    returns

    Boolean

    Definition Classes
    Quantity
  93. def ~=(that: Energy)(implicit tolerance: Energy): Boolean

    approx - more natural operator but has low precedence and requires parens

    approx - more natural operator but has low precedence and requires parens

    Definition Classes
    Quantity

Inherited from TimeIntegral[Power]

Inherited from PhysicalQuantity

Inherited from Quantity[Energy]

Inherited from Serializable

Inherited from Serializable

Inherited from Ordered[Energy]

Inherited from Comparable[Energy]

Inherited from AnyRef

Inherited from Any

Ungrouped