GBitSet.findHighestActiveBit

int findHighestActiveBit()

Returns the index of the highest active bit, or -1 if no bits are set.