Bit32

constructor(lo: Int, hi: Int, incrementBy: Int)(source)

Creates a new Bit32 counter initialized to lo and hi

Throws

IllegalArgumentException

when:


constructor(incrementBy: Int)(source)

Creates a new Bit32 counter initialized to 0:0

Throws

IllegalArgumentException

when incrementBy is:

  • Less than or equal to 0

  • Greater than MAX_INCREMENT

  • Not a factor of 8

  • Does not go into Int.MIN_VALUE (i.e. when Int.MIN_VALUE % incrementBy != 0)