public final class SearchResults<T> extends Object implements Serializable
| Constructor and Description | 
|---|
| SearchResults(List<T> results,
             Long limit,
             Long offset,
             long total)Create a new SearchResults instance | 
| SearchResults(List<T> results,
             QueryModifiers mod,
             long total)Create a new SearchResults instance | 
| Modifier and Type | Method and Description | 
|---|---|
| static <T> SearchResults<T> | emptyResults() | 
| long | getLimit() | 
| long | getOffset() | 
| List<T> | getResults()Get the results in List form
 
 An empty list is returned for no results. | 
| long | getTotal()Get the number of total results | 
| boolean | isEmpty() | 
public SearchResults(List<T> results, @Nullable Long limit, @Nullable Long offset, long total)
results - paged resultslimit - used limitoffset - used offsettotal - total result rows countpublic SearchResults(List<T> results, QueryModifiers mod, long total)
results - paged resultsmod - limit and offsettotal - total result rows countpublic static <T> SearchResults<T> emptyResults()
public List<T> getResults()
public long getTotal()
public boolean isEmpty()
public long getLimit()
public long getOffset()
Copyright © 2007–2015 Querydsl. All rights reserved.