|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResultsList<E>
A java.util.List containing the list of search results. This List is generally constructed by the various YahooSearch subclasses during the readResults() phase of the search. It is not thought generally useful to create instances of this class yourself.
ResultsList differs from java.util.List in that it adds two methods:
getTotalResultsAvailable() and
getFirstResultPosition(). The values returned from this method are
typically based on search results.
For example, suppose a search is performed that includes 100 results but only the results between 30(inclusive)-40(exclusive) are included. The results from these methods would be:
None of these values are required for using this List. Rather, they are useful when used to page through all of the totalResultsAvailable.
This interface adds one more important method, getYahooSearch() which
returns the YahooSearch that was used to produce this search ResultsList.
This allows some automated code to page through all the results, creating new
searches as necessary.
| Method Summary | |
|---|---|
int |
getFirstResultPosition()
|
int |
getTotalResultsAvailable()
|
YahooSearch |
getYahooSearch()
|
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Method Detail |
|---|
int getTotalResultsAvailable()
int getFirstResultPosition()
YahooSearch getYahooSearch()
YahooSearch that was used to produce this ResultsList. May
be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||