What is the most efficient data structure to handle (i.e. perform all bitwise operations on) bitmasks that are of a known size but larger than 64bits?
byte[]
? BigInteger
? Something else entirely?
Needs to be Java 7 compatible and should be fast (or at least as fast as can reasonably be expected, given their size) for things like
if(bitmask & 7 != 0){...}
and
bitmask1 |= bitmask2
and so on.