private void addValuesToSelection ( Selection results , byte key ) { if ( key != DEFAULT_RETURN_VALUE ) { int i = 0 ; for ( byte next : values ) { if ( key == next ) { results . add ( i ) ; } i ++ ; } } }
Given a key matching some string add to the selection the index of every record that matches that key