protected boolean isPrefixBlock ( long divisionValue , long upperValue , int divisionPrefixLen ) { if ( divisionPrefixLen == 0 ) { return divisionValue == 0 && upperValue == getMaxValue ( ) ; } long ones = ~ 0L ; long divisionBitMask = ~ ( ones << getBitCount ( ) ) ; long divisionPrefixMask = ones << ( getBitCount ( ) - divisionPrefixLen ) ; long divisionNonPrefixMask = ~ divisionPrefixMask ; return testRange ( divisionValue , upperValue , upperValue , divisionPrefixMask & divisionBitMask , divisionNonPrefixMask ) ; }
Returns whether the division range includes the block of values for its prefix length