bitset icon indicating copy to clipboard operation
bitset copied to clipboard

Implementing (next/previous)(Set/Clear)Bit()

Open srounce opened this issue 12 years ago • 1 comments

A reasonably DRY implementation of the following methods:

  • http://docs.oracle.com/javase/7/docs/api/java/util/BitSet.html#nextSetBit(int)
  • http://docs.oracle.com/javase/7/docs/api/java/util/BitSet.html#nextClearBit(int)
  • http://docs.oracle.com/javase/7/docs/api/java/util/BitSet.html#previousSetBit(int)
  • http://docs.oracle.com/javase/7/docs/api/java/util/BitSet.html#previousClearBit(int)

Need to write some unit tests, but has been manually tested, and all seems good.

srounce avatar Apr 05 '13 15:04 srounce

Will update source branch with:

  • Fixed conflicts
  • Updated README.md with methods listed

srounce avatar Oct 09 '16 13:10 srounce