|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysema.query.SearchResults<T>
public final class SearchResults<T>
SearchResults bundles data for paged search results
Constructor Summary | |
---|---|
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 |
Method Summary | ||
---|---|---|
static
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 countMethod Detail |
---|
public static <T> SearchResults<T> emptyResults()
public List<T> getResults()
public long getTotal()
public boolean isEmpty()
public long getLimit()
public long getOffset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |