Class

io.github.karols.units.internal.ratios

BaseIntRatio

Related Doc: package ratios

Permalink

final class BaseIntRatio[U <: MUnit, V <: MUnit] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseIntRatio
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BaseIntRatio(ratio: Long)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    Any
  3. def *[X <: MUnit, Y <: MUnit](that: BaseDoubleRatio[X, Y]): BaseDoubleRatio[U.Mul[X], V.Mul[Y]]

    Permalink

    Converts ratios between U and V and between X and Y into ratio between U×X and V×Y

    Converts ratios between U and V and between X and Y into ratio between U×X and V×Y

    Annotations
    @inline()
  4. def *[X <: MUnit, Y <: MUnit](that: BaseIntRatio[X, Y]): BaseIntRatio[U.Mul[X], V.Mul[Y]]

    Permalink

    Converts ratios between U and V and between X and Y into ratio between U×X and V×Y

    Converts ratios between U and V and between X and Y into ratio between U×X and V×Y

    Annotations
    @inline()
  5. def /[X <: MUnit, Y <: MUnit](that: BaseDoubleRatio[X, Y]): BaseDoubleRatio[U.Mul[/.X.Invert], V.Mul[/.Y.Invert]]

    Permalink

    Converts ratios between U and V and between X and Y into ratio between U/X and V/Y

    Converts ratios between U and V and between X and Y into ratio between U/X and V/Y

    Annotations
    @inline()
  6. def /[X <: MUnit, Y <: MUnit](that: BaseIntRatio[X, Y]): BaseDoubleRatio[U.Mul[/.X.Invert], V.Mul[/.Y.Invert]]

    Permalink

    Converts ratios between U and V and between X and Y into ratio between U/X and V/Y

    Converts ratios between U and V and between X and Y into ratio between U/X and V/Y

    Annotations
    @inline()
  7. def <>[Y <: MUnit](that: BaseIntRatio[U, Y]): BaseDoubleRatio[V, Y]

    Permalink

    Converts ratios between U and V and between U and Y into ratio between V and Y

    Converts ratios between U and V and between U and Y into ratio between V and Y

    Annotations
    @inline()
  8. def <>[Y <: MUnit](that: BaseDoubleRatio[U, Y]): BaseDoubleRatio[V, Y]

    Permalink

    Converts ratios between U and V and between U and Y into ratio between V and Y

    Converts ratios between U and V and between U and Y into ratio between V and Y

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

    Permalink
    Definition Classes
    Any
  10. def ><[Y <: MUnit](that: BaseIntRatio[Y, V]): BaseDoubleRatio[U, Y]

    Permalink

    Converts ratios between U and V and between Y and V into ratio between U and Y

    Converts ratios between U and V and between Y and V into ratio between U and Y

    Annotations
    @inline()
  11. def ><[Y <: MUnit](that: BaseDoubleRatio[Y, V]): BaseDoubleRatio[U, Y]

    Permalink

    Converts ratios between U and V and between Y and V into ratio between U and Y

    Converts ratios between U and V and between Y and V into ratio between U and Y

    Annotations
    @inline()
  12. def >>[Y <: MUnit](that: BaseDoubleRatio[V, Y]): BaseDoubleRatio[U, Y]

    Permalink

    Converts ratios between U and V and between V and Y into ratio between U and Y

    Converts ratios between U and V and between V and Y into ratio between U and Y

    Annotations
    @inline()
  13. def >>[Y <: MUnit](that: BaseIntRatio[V, Y]): BaseIntRatio[U, Y]

    Permalink

    Converts ratios between U and V and between V and Y into ratio between U and Y

    Converts ratios between U and V and between V and Y into ratio between U and Y

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

    Permalink
    Definition Classes
    Any
  15. def dividedBy[Y <: MUnit]: BaseIntRatio[U.Mul[dividedBy.Y.Invert], V.Mul[dividedBy.Y.Invert]]

    Permalink

    Converts a ratio between U and V into ratio between U/Y and V/Y

    Converts a ratio between U and V into ratio between U/Y and V/Y

    Annotations
    @inline()
  16. def dividing[Y <: MUnit]: BaseDoubleRatio[dividing.Y.Mul[U.Invert], dividing.Y.Mul[V.Invert]]

    Permalink

    Converts a ratio between U and V into ratio between Y/U and Y/V

    Converts a ratio between U and V into ratio between Y/U and Y/V

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

    Permalink
    Definition Classes
    AnyVal → Any
  18. def invert: BaseDoubleRatio[V, U]

    Permalink

    Converts a ratio between U and V into ratio between 1/U and 1/V

    Converts a ratio between U and V into ratio between 1/U and 1/V

    Annotations
    @inline()
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def pow2: BaseIntRatio[U.Mul[U], V.Mul[V]]

    Permalink

    Converts a ratio between U and V into ratio between U2 and V2

    Converts a ratio between U and V into ratio between U2 and V2

    Annotations
    @inline()
  21. def pow3: BaseIntRatio[MUnit.Mul.Mul[U], MUnit.Mul.Mul[V]]

    Permalink

    Converts a ratio between U and V into ratio between U3 and V3

    Converts a ratio between U and V into ratio between U3 and V3

    Annotations
    @inline()
  22. def pow4: BaseIntRatio[MUnit.Mul.Mul[U], MUnit.Mul.Mul[V]]

    Permalink

    Converts a ratio between U and V into ratio between U4 and V4

    Converts a ratio between U and V into ratio between U4 and V4

    Annotations
    @inline()
  23. def pow5: BaseIntRatio[MUnit.Mul.Mul[U], MUnit.Mul.Mul[V]]

    Permalink

    Converts a ratio between U and V into ratio between U5 and V5

    Converts a ratio between U and V into ratio between U5 and V5

    Annotations
    @inline()
  24. val ratio: Long

    Permalink
  25. def times[Y <: MUnit]: BaseIntRatio[U.Mul[Y], V.Mul[Y]]

    Permalink

    Converts a ratio between U and V into ratio between U×Y and V×Y

    Converts a ratio between U and V into ratio between U×Y and V×Y

    Annotations
    @inline()
  26. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped