public class SearchResultsPage extends Object implements Iterable<SearchResult>
search results.| Constructor and Description |
|---|
SearchResultsPage(SearchResults results,
int page,
org.json.JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
SearchResult |
getResult(int x)
Gets a result from this page.
|
Iterator<SearchResult> |
iterator() |
int |
size()
Gets the amount of
search results on this page. |
Spliterator<SearchResult> |
spliterator() |
java.util.stream.Stream<SearchResult> |
stream()
Gets the results on this page as a stream.
|
public SearchResultsPage(SearchResults results, int page, org.json.JSONObject json)
public SearchResult getResult(int x)
x - The search result index of this page, must be in [0, size()).public int size()
search results on this page.public Iterator<SearchResult> iterator()
iterator in interface Iterable<SearchResult>public Spliterator<SearchResult> spliterator()
spliterator in interface Iterable<SearchResult>public java.util.stream.Stream<SearchResult> stream()
Copyright © 2017. All rights reserved.