Class/Object

io.github.karols.units

IntU

Related Docs: object IntU | package units

Permalink

final case class IntU[U <: MUnit](value: Long) extends AnyVal with Product with Serializable

64-bit signed integer representing a value with a unit of measure.

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

Instance Constructors

  1. new IntU(value: Long)

    Permalink

Value Members

  1. def !=(i: DoubleU[U]): Boolean

    Permalink
    Annotations
    @inline()
  2. def !=(i: IntU[U]): Boolean

    Permalink
    Annotations
    @inline()
  3. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. def !=~[V <: MUnit, W <: MUnit](i: DoubleU[V])(implicit arg0: <:<[((W) ⇒ Nothing) ⇒ Nothing, ((U) ⇒ Nothing with (V) ⇒ Nothing) ⇒ Nothing], l: LeftIntRatio[U, V, W], r: RightIntRatio[U, V, W]): Boolean

    Permalink
    Annotations
    @inline()
  5. def !=~[V <: MUnit, W <: MUnit](i: IntU[V])(implicit arg0: <:<[((W) ⇒ Nothing) ⇒ Nothing, ((U) ⇒ Nothing with (V) ⇒ Nothing) ⇒ Nothing], l: LeftIntRatio[U, V, W], r: RightIntRatio[U, V, W]): Boolean

    Permalink
    Annotations
    @inline()
  6. final def ##(): Int

    Permalink
    Definition Classes
    Any
  7. def *(i: Float): DoubleU[U]

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  8. def *(i: Byte): IntU[U]

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  9. def *(i: Short): IntU[U]

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  10. def *(i: Int): IntU[U]

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  11. def *[V <: MUnit](i: DoubleU[V]): DoubleU[U.Mul[V]]

    Permalink

    Multiply by a value with a unit.

    Multiply by a value with a unit.

    Annotations
    @inline()
  12. def *[V <: MUnit](i: IntU[V]): IntU[U.Mul[V]]

    Permalink

    Multiply by a value with a unit.

    Multiply by a value with a unit.

    Annotations
    @inline()
  13. def *[V <: MUnit](i: Vector2U[V]): Vector2U[*.V.Mul[U]]

    Permalink

    Multiply by a vector.

    Multiply by a vector.

    Annotations
    @inline()
  14. def *[V <: MUnit](i: Vector3U[V]): Vector3U[*.V.Mul[U]]

    Permalink

    Multiply by a vector.

    Multiply by a vector.

    Annotations
    @inline()
  15. def +[V <: MUnit, W <: MUnit](i: DoubleU[V])(implicit arg0: <:<[((W) ⇒ Nothing) ⇒ Nothing, ((U) ⇒ Nothing with (V) ⇒ Nothing) ⇒ Nothing], l: LeftIntRatio[U, V, W], r: RightIntRatio[U, V, W]): DoubleU[W]

    Permalink
    Annotations
    @inline()
  16. def +[V <: MUnit, W <: MUnit](i: IntU[V])(implicit l: LeftIntRatio[U, V, W], r: RightIntRatio[U, V, W]): IntU[W]

    Permalink

    Add a value with a different unit, coercing to the smaller of them.

    Add a value with a different unit, coercing to the smaller of them.

    Annotations
    @inline()
  17. def +(i: DoubleU[U]): DoubleU[U]

    Permalink

    Add a value with the same unit.

    Add a value with the same unit.

    Annotations
    @inline()
  18. def +(i: IntU[U]): IntU[U]

    Permalink

    Add a value with the same unit.

    Add a value with the same unit.

    Annotations
    @inline()
  19. def -[V <: MUnit, W <: MUnit](i: DoubleU[V])(implicit arg0: <:<[((W) ⇒ Nothing) ⇒ Nothing, ((U) ⇒ Nothing with (V) ⇒ Nothing) ⇒ Nothing], l: LeftIntRatio[U, V, W], r: RightIntRatio[U, V, W]): DoubleU[W]

    Permalink

    Subtract a value with a different unit, coercing to the smaller of them.

    Subtract a value with a different unit, coercing to the smaller of them.

    Annotations
    @inline()
  20. def -[V <: MUnit, W <: MUnit](i: IntU[V])(implicit arg0: <:<[((W) ⇒ Nothing) ⇒ Nothing, ((U) ⇒ Nothing with (V) ⇒ Nothing) ⇒ Nothing], l: LeftIntRatio[U, V, W], r: RightIntRatio[U, V, W]): IntU[W]

    Permalink

    Subtract a value with a different unit, coercing to the smaller of them.

    Subtract a value with a different unit, coercing to the smaller of them.

    Annotations
    @inline()
  21. def -(i: DoubleU[U]): DoubleU[U]

    Permalink

    Subtract a value with the same unit.

    Subtract a value with the same unit.

    Annotations
    @inline()
  22. def -(i: IntU[U]): IntU[U]

    Permalink

    Subtract a value with the same unit.

    Subtract a value with the same unit.

    Annotations
    @inline()
  23. def /(i: Float): DoubleU[U]

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  24. def /(i: Byte): DoubleU[U]

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  25. def /(i: Short): DoubleU[U]

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  26. def /(i: Int): DoubleU[U]

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  27. def /[V <: MUnit](i: DoubleU[V]): DoubleU[U.Mul[/.V.Invert]]

    Permalink

    Divide by a value with a unit.

    Divide by a value with a unit.

    Annotations
    @inline()
  28. def /[V <: MUnit](i: IntU[V]): DoubleU[U.Mul[/.V.Invert]]

    Permalink

    Divide by a value with a unit.

    Divide by a value with a unit.

    Annotations
    @inline()
  29. def <(i: DoubleU[U]): Boolean

    Permalink
    Annotations
    @inline()
  30. def <(i: IntU[U]): Boolean

    Permalink
    Annotations
    @inline()
  31. def <=(i: DoubleU[U]): Boolean

    Permalink
    Annotations
    @inline()
  32. def <=(i: IntU[U]): Boolean

    Permalink
    Annotations
    @inline()
  33. def <=~[V <: MUnit](i: DoubleU[V])(implicit ev: DoubleRatio[U, V]): Boolean

    Permalink
    Annotations
    @inline()
  34. def <=~[V <: MUnit](i: IntU[V])(implicit ev: DoubleRatio[U, V]): Boolean

    Permalink
    Annotations
    @inline()
  35. def <~[V <: MUnit](i: DoubleU[V])(implicit ev: DoubleRatio[U, V]): Boolean

    Permalink
    Annotations
    @inline()
  36. def <~[V <: MUnit](i: IntU[V])(implicit ev: DoubleRatio[U, V]): Boolean

    Permalink
    Annotations
    @inline()
  37. def ==(i: DoubleU[U]): Boolean

    Permalink
    Annotations
    @inline()
  38. def ==(i: IntU[U]): Boolean

    Permalink
    Annotations
    @inline()
  39. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  40. def ==~[V <: MUnit, W <: MUnit](i: DoubleU[V])(implicit arg0: <:<[((W) ⇒ Nothing) ⇒ Nothing, ((U) ⇒ Nothing with (V) ⇒ Nothing) ⇒ Nothing], l: LeftIntRatio[U, V, W], r: RightIntRatio[U, V, W]): Boolean

    Permalink
    Annotations
    @inline()
  41. def ==~[V <: MUnit, W <: MUnit](i: IntU[V])(implicit arg0: <:<[((W) ⇒ Nothing) ⇒ Nothing, ((U) ⇒ Nothing with (V) ⇒ Nothing) ⇒ Nothing], l: LeftIntRatio[U, V, W], r: RightIntRatio[U, V, W]): Boolean

    Permalink
    Annotations
    @inline()
  42. def >(i: DoubleU[U]): Boolean

    Permalink
    Annotations
    @inline()
  43. def >(i: IntU[U]): Boolean

    Permalink
    Annotations
    @inline()
  44. def >=(i: DoubleU[U]): Boolean

    Permalink
    Annotations
    @inline()
  45. def >=(i: IntU[U]): Boolean

    Permalink
    Annotations
    @inline()
  46. def >=~[V <: MUnit](i: DoubleU[V])(implicit ev: DoubleRatio[U, V]): Boolean

    Permalink
    Annotations
    @inline()
  47. def >=~[V <: MUnit](i: IntU[V])(implicit ev: DoubleRatio[U, V]): Boolean

    Permalink
    Annotations
    @inline()
  48. def >~[V <: MUnit](i: DoubleU[V])(implicit ev: DoubleRatio[U, V]): Boolean

    Permalink
    Annotations
    @inline()
  49. def >~[V <: MUnit](i: IntU[V])(implicit ev: DoubleRatio[U, V]): Boolean

    Permalink
    Annotations
    @inline()
  50. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  51. def cbrt: DoubleU[U.Cbrt]

    Permalink

    Cube root.

    Cube root.

    Annotations
    @inline()
  52. def convert[V <: MUnit](implicit ev: DoubleRatio[U, V]): DoubleU[V]

    Permalink

    Convert to another unit.

    Convert to another unit.

    Annotations
    @inline()
  53. def convertToInt[V <: MUnit](implicit ev: IntRatio[U, V]): IntU[V]

    Permalink

    Convert to a subunit.

    Convert to a subunit.

    Annotations
    @inline()
  54. def dividedBy(i: Float): DoubleU[U]

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  55. def dividedBy(i: Double): DoubleU[U]

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  56. def dividedBy(i: Byte): DoubleU[U]

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  57. def dividedBy(i: Short): DoubleU[U]

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  58. def dividedBy(i: Int): DoubleU[U]

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  59. def dividedBy(i: Long): DoubleU[U]

    Permalink

    Divide by a dimensionless value.

    Divide by a dimensionless value.

    Annotations
    @inline()
  60. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  61. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  62. def mkString(implicit name: UnitName[U]): String

    Permalink
    Annotations
    @inline()
  63. def per[V <: MUnit]: IntU[/[U, V]]

    Permalink

    Divide the unit of this value by another unit.

    Divide the unit of this value by another unit.

    Annotations
    @inline()
  64. def pow2: IntU[U.Mul[U]]

    Permalink

    Square.

    Square.

    Annotations
    @inline()
  65. def pow3: IntU[MUnit.Mul.Mul[U]]

    Permalink

    Cube.

    Cube.

    Annotations
    @inline()
  66. def pow4: IntU[MUnit.Mul.Mul[U]]

    Permalink

    Fourth power.

    Fourth power.

    Annotations
    @inline()
  67. def represent[V <: MUnit, W <: MUnit](implicit ev: DoubleRatio[V, W]): DoubleU[MUnit.Mul.Mul[W]]

    Permalink
    Annotations
    @inline()
  68. def representAll[V <: TUnitPowerPair, W <: MUnit](implicit ev: PowerDoubleRatio[representAll.V.UnitName, representAll.V.Power, W, U.Get[representAll.V.UnitName]]): DoubleU[MUnit.Mul.Mul[representAll.W.ToPower[U.Get[representAll.V.UnitName]]]]

    Permalink
    Annotations
    @inline()
  69. def sqrt: DoubleU[U.Sqrt]

    Permalink

    Square root.

    Square root.

    Annotations
    @inline()
  70. def times(i: Float): DoubleU[U]

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  71. def times(i: Double): DoubleU[U]

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  72. def times(i: Byte): IntU[U]

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  73. def times(i: Short): IntU[U]

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  74. def times(i: Int): IntU[U]

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  75. def times(i: Long): IntU[U]

    Permalink

    Multiply by a dimensionless value.

    Multiply by a dimensionless value.

    Annotations
    @inline()
  76. def times[V <: MUnit](i: Vector2U[V]): Vector2U[times.V.Mul[U]]

    Permalink

    Multiply by a vector.

    Multiply by a vector.

    Annotations
    @inline()
  77. def times[V <: MUnit](i: Vector3U[V]): Vector3U[times.V.Mul[U]]

    Permalink

    Multiply by a vector.

    Multiply by a vector.

    Annotations
    @inline()
  78. def toDouble: DoubleU[U]

    Permalink
    Annotations
    @inline()
  79. def toString(): String

    Permalink
    Definition Classes
    IntU → Any
    Annotations
    @inline()
  80. def unary_-: IntU[U]

    Permalink

    Negate this value.

    Negate this value.

    Annotations
    @inline()
  81. val value: Long

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Ungrouped