private int findFirstDifferingBit ( String key1 , String key2 ) { int bit = 0 ; while ( keyMapper . isSet ( bit , key1 ) == keyMapper . isSet ( bit , key2 ) ) { bit ++ ; } return bit ; }
Returns the leftmost differing bit index when doing a bitwise comparison of key1 and key2