public class SearchResult<T>
extends java.lang.Object
| Constructor and Description |
|---|
SearchResult() |
SearchResult(java.util.List<T> documents,
int totalCount) |
| Modifier and Type | Method and Description |
|---|---|
static <T> SearchResult<T> |
empty() |
java.util.List<T> |
getDocuments() |
int |
getTotalCount() |
static <T> SearchResult<T> |
of(java.util.List<T> documents,
int totalCount) |
void |
setDocuments(java.util.List<T> documents) |
void |
setTotalCount(int totalCount) |
public SearchResult()
public SearchResult(java.util.List<T> documents, int totalCount)
public static <T> SearchResult<T> empty()
public static <T> SearchResult<T> of(java.util.List<T> documents, int totalCount)
public java.util.List<T> getDocuments()
public void setDocuments(java.util.List<T> documents)
public int getTotalCount()
public void setTotalCount(int totalCount)