public class SearchResults<T> extends java.lang.Object implements ISearchResults<T>
Constructor and Description |
---|
SearchResults(java.util.List<T> all) |
SearchResults(java.util.List<T> page,
long total) |
Modifier and Type | Method and Description |
---|---|
long |
getNumResults()
Get the total number of results.
|
java.util.List<T> |
getResults()
Get the results.
|
void |
setNumResults(long numResults) |
void |
setResults(java.util.List<T> results) |
public SearchResults(java.util.List<T> all)
public SearchResults(java.util.List<T> page, long total)
public long getNumResults()
ISearchResults
getNumResults
in interface ISearchResults<T>
public void setNumResults(long numResults)
public java.util.List<T> getResults()
ISearchResults
getResults
in interface ISearchResults<T>
public void setResults(java.util.List<T> results)