nextSetBit

open override fun nextSetBit(i: Int): Int

Returns the index of the first set bit starting at the index specified. is returned if there are no more set bits.


open override fun nextSetBit(start: Int, upperBound: Int): Int

Returns the index of the first set bit from start (inclusive) until end (exclusive). is returned if there are no more set bits.