private void setNumberHits ( BitSet bits , String value , int min , int max ) { String [ ] fields = StringUtils . delimitedListToStringArray ( value , "," ) ; for ( String field : fields ) { if ( ! field . contains ( "/" ) ) { // Not an incrementer so it must be a range (possibly empty) int [ ] range = getRange ( field , min , max ) ; bits . set ( range [ 0 ] , range [ 1 ] + 1 ) ; } else { String [ ] split = StringUtils . delimitedListToStringArray ( field , "/" ) ; if ( split . length > 2 ) { throw new IllegalArgumentException ( "Incrementer has more than two fields: '" + field + "' in expression \"" + this . expression + "\"" ) ; } int [ ] range = getRange ( split [ 0 ] , min , max ) ; if ( ! split [ 0 ] . contains ( "-" ) ) { range [ 1 ] = max - 1 ; } int delta = Integer . valueOf ( split [ 1 ] ) ; for ( int i = range [ 0 ] ; i <= range [ 1 ] ; i += delta ) { bits . set ( i ) ; } } } }
Sets the number hits .