com.atlassian.confluence.api.model.pagination
Interface PageResponse<T>

All Superinterfaces:
java.lang.Iterable<T>
All Known Implementing Classes:
PageResponseImpl, RestList

@ExperimentalApi
public interface PageResponse<T>
extends java.lang.Iterable<T>

A response to a page request, used in pagination. Wraps a list and provides information on whether there are more results.


Method Summary
 PageRequest getPageRequest()
           
 java.util.List<T> getResults()
           
 boolean hasMore()
          Indicates whether the source has more results after this page.
 int size()
           
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getResults

java.util.List<T> getResults()
Returns:
the results

size

int size()
Returns:
the number of results in this page of results

hasMore

boolean hasMore()
Indicates whether the source has more results after this page.

Returns:
true if there are more results

getPageRequest

PageRequest getPageRequest()
Returns:
the request used to produce this response


Copyright © 2003-2014 Atlassian. All Rights Reserved.