public class SearchResult<T>
extends java.lang.Object
implements java.io.Serializable
searchAndCount()
operations. It has just two properties: the results and the search and the
total (unpaged) count of the search.Modifier and Type | Field and Description |
---|---|
protected java.util.List<T> |
result |
protected int |
totalCount |
Constructor and Description |
---|
SearchResult() |
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
getResult()
The results of the search.
|
int |
getTotalCount()
The total number of results that would have been returned if no
maxResults had been specified.
|
void |
setResult(java.util.List<T> results)
The results of the search.
|
void |
setTotalCount(int totalCount)
The total number of results that would have been returned if no
maxResults had been specified.
|
protected java.util.List<T> result
protected int totalCount
public java.util.List<T> getResult()
public void setResult(java.util.List<T> results)
public int getTotalCount()
public void setTotalCount(int totalCount)