public void filter ( CaptureSearchResults results ) { Iterator < CaptureSearchResult > itr = results . iterator ( ) ; while ( itr . hasNext ( ) ) { CaptureSearchResult result = itr . next ( ) ; String captureDate = result . getCaptureTimestamp ( ) ; if ( ( captureDate . compareTo ( startDateStr ) >= 0 ) && ( captureDate . compareTo ( endDateStr ) < 0 ) ) { matches . add ( result ) ; } } }
add all SearchResult objects from the SearchResults which fall within the time range of this partition into this partition .