public class PageResult<T> extends Object
Constructor and Description |
---|
PageResult(long total,
List<T> results) |
PageResult(QueryOptions queryOptions,
List<T> results) |
Modifier and Type | Method and Description |
---|---|
List<T> |
getResults()
Returns the results from this particular query, which may be a subset or page of all possible results.
|
long |
getTotal()
Returns the total count of entries available, not just those returned by this particular query.
|
public PageResult(long total, List<T> results)
total
- The total result count.results
- The results returned.public PageResult(QueryOptions queryOptions, List<T> results)
Copyright © 2008–2021 Sonatype, Inc.. All rights reserved.