Packages

c

ostrat.pExt

IntExtensions

final class IntExtensions extends AnyVal

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

Instance Constructors

  1. new IntExtensions(thisInt: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def %%(divisor: Int): Int

    Correct defintion of modulus.

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def billion: Long
  7. def commaInts(otherInts: Int*): String
  8. def decrementTill(f: (Int) => Boolean): Int

    Decreases the value of an integer while that integer does not match condition

  9. def degreesToRadians: Double
    Annotations
    @inline()
  10. def diff(operand: Int): Int
  11. def div2: Int
  12. def div2RoundDown: Int
  13. def div2RoundUp: Int
  14. def div4: Int
  15. def div4Rem0: Boolean
  16. def div4Rem1: Boolean
  17. def div4Rem2: Boolean
  18. def div4Rem3: Boolean
  19. def div8Rem2: Boolean
  20. def div8Rem4: Boolean
  21. def div8Rem6: Boolean
  22. def doTimes(f: () => Unit): Unit
  23. def foldTo[A](toValue: Int, initialValue: A)(f: (A, Int) => A): A

    folds across the Integer range starting with this Int to the given end of range.

  24. def foldUntil[A](untilValue: Int, initialValue: A)(f: (A, Int) => A): A

    folds across the Integer range starting with this Int until the given end of range.

  25. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  26. def hexStr: String
    Annotations
    @inline()
  27. def hexStr2: String
    Annotations
    @inline()
  28. def hundredthsStr(hundreds: Int): String
  29. def ifEven[A](vEven: => A, vOdd: => A): A
  30. def ifOdd[A](vOdd: => A, vEven: => A): A
  31. def ifSumEven[A](evenVal: => A, oddVal: => A, operand: Int): A
  32. def ifSumOdd[A](oddVal: => A, evenVal: => A, operand: Int): A
  33. def ifZero[A](vZero: => A, vNonZero: => A): A
  34. def incrementTill(f: (Int) => Boolean): Int

    Increases the value of an integer while that integer does not match condition

  35. def isDivBy3: Boolean
  36. def isDivBy8: Boolean
  37. def isEven: Boolean
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. def isOdd: Boolean
  40. def million: Int
  41. def min0: Int
  42. def neg: Boolean
  43. def pos: Boolean
  44. def power(operand: Int): Int

    Only use positive value that won't overflow int)

  45. def quadrillion: Long
  46. def radiansToDegrees: Double
    Annotations
    @inline()
  47. def roundDownToOdd: Int
  48. def roundUpToOdd: Int
  49. def semicolonInts(otherInts: Int*): String
  50. def spaces: String
  51. def str2Dig: String
  52. def tenthsStr(tenths: Int): String
  53. val thisInt: Int
  54. def toString(): String
    Definition Classes
    Any
  55. def trillion: Long

Inherited from AnyVal

Inherited from Any

Ungrouped