Class SearchPageResponse.Builder<T>
- java.lang.Object
-
- com.atlassian.confluence.api.model.search.SearchPageResponse.Builder<T>
-
- Enclosing class:
- SearchPageResponse<T>
public static class SearchPageResponse.Builder<T> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description com.atlassian.fugue.Option<Integer>
archivedResultCount
Deprecated.since 7.0.1.String
cqlQuery
boolean
hasMore
PageRequest
pageRequest
com.google.common.collect.ImmutableList.Builder<T>
results
int
searchDuration
int
totalSize
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SearchPageResponse.Builder<T>
archivedResultCount(com.atlassian.fugue.Option<Integer> archivedResultCount)
Deprecated.since 7.0.1.SearchPageResponse<T>
build()
SearchPageResponse.Builder<T>
cqlQuery(String query)
SearchPageResponse.Builder<T>
hasMore(boolean hasMore)
SearchPageResponse.Builder<T>
pageRequest(PageRequest pageRequest)
SearchPageResponse.Builder<T>
result(Iterable<T> results)
SearchPageResponse.Builder<T>
searchDuration(int duration)
SearchPageResponse.Builder<T>
totalSize(int size)
SearchPageResponse.Builder<T>
withArchivedResultCount(Optional<Integer> archivedResultCount)
-
-
-
Field Detail
-
results
public com.google.common.collect.ImmutableList.Builder<T> results
-
hasMore
public boolean hasMore
-
cqlQuery
public String cqlQuery
-
pageRequest
public PageRequest pageRequest
-
totalSize
public int totalSize
-
searchDuration
public int searchDuration
-
archivedResultCount
@Deprecated public com.atlassian.fugue.Option<Integer> archivedResultCount
Deprecated.since 7.0.1. Use getters and setters.
-
-
Method Detail
-
build
public SearchPageResponse<T> build()
-
result
public SearchPageResponse.Builder<T> result(Iterable<T> results)
-
hasMore
public SearchPageResponse.Builder<T> hasMore(boolean hasMore)
-
totalSize
public SearchPageResponse.Builder<T> totalSize(int size)
-
cqlQuery
public SearchPageResponse.Builder<T> cqlQuery(String query)
-
pageRequest
public SearchPageResponse.Builder<T> pageRequest(PageRequest pageRequest)
-
searchDuration
public SearchPageResponse.Builder<T> searchDuration(int duration)
-
archivedResultCount
@Deprecated public SearchPageResponse.Builder<T> archivedResultCount(com.atlassian.fugue.Option<Integer> archivedResultCount)
Deprecated.since 7.0.1. UsewithArchivedResultCount(Optional)
-
withArchivedResultCount
public SearchPageResponse.Builder<T> withArchivedResultCount(Optional<Integer> archivedResultCount)
- Since:
- 7.0.1
-
-