public class ResultsAggregators extends Object
ResultsAggregator
.Constructor and Description |
---|
ResultsAggregators() |
Modifier and Type | Method and Description |
---|---|
static <T extends User> |
forUsers(int startIndex,
int maxResults)
Creates an aggregator that will identify and sort users by lower-cased name.
|
static <T,K extends Comparable<? super K>> |
with(com.google.common.base.Function<? super T,? extends K> maker,
int startIndex,
int maxResults) |
static <T,K extends Comparable<? super K>> |
with(com.google.common.base.Function<? super T,? extends K> maker,
Query<? extends T> query)
Creates an instance that will use the provided function to uniquely identify results and that will
expect as many total results as indicated by the query.
|
static <T> ResultsAggregator<T> |
with(Query<T> query)
Creates an instance that will sort, de-duplicate and constrain results according to the
query . |
public static <T,K extends Comparable<? super K>> ResultsAggregator<T> with(com.google.common.base.Function<? super T,? extends K> maker, Query<? extends T> query)
maker
- a key-making functionquery
- an indication of how many results are requiredpublic static <T,K extends Comparable<? super K>> ResultsAggregator<T> with(com.google.common.base.Function<? super T,? extends K> maker, int startIndex, int maxResults)
public static <T extends User> ResultsAggregator<T> forUsers(int startIndex, int maxResults)
startIndex
- defines how many results should be skippedmaxResults
- maximum number of results to be returnedpublic static <T> ResultsAggregator<T> with(Query<T> query)
query
.Copyright © 2020 Atlassian. All rights reserved.