searchResults chopResults

format

public SearchResults[] chopResults( SearchResults[] source, int pos )

description

Truncates the array of SearchResults to the given length. If the array is already that length or shorter, it is returned unmodified.

parameters

source - an array of search results

 

pos - the position in the search results at which to truncate

returns

a one-dimensional array of SearchResults objects with pos or fewer members

throws

The searchResults chopResults () method does not throw any exceptions.