public class OrderedResultsConstrainer<T> extends Object
| Constructor and Description |
|---|
OrderedResultsConstrainer(Predicate<T> filter,
int startIndex,
int maxResults) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Iterable<T> collection) |
int |
getRemainingCount()
Returns remaining number of results that need to be fetched.
|
List<T> |
toList()
Returns constrained results.
|
public OrderedResultsConstrainer(Predicate<T> filter, int startIndex, int maxResults)
filter - results filter, null means no filteringstartIndex - results with index lower than startIndex will be droppedmaxResults - maximum number of results, for all results specify EntityQuery.ALL_RESULTSpublic void addAll(Iterable<T> collection)
collection - collection to append to resultspublic int getRemainingCount()
EntityQuery.ALL_RESULTS were requested
then returns EntityQuery.ALL_RESULTS .Copyright © 2023 Atlassian. All rights reserved.