com.atlassian.user.search.page
Interface Pager<T>
- All Superinterfaces:
- java.lang.Iterable<T>
public interface Pager<T>
- extends java.lang.Iterable<T>
|
Field Summary |
static int |
NO_POSITION
|
static int |
PRELOAD_LIMIT
Maximum number of elements to hold in memory at a given moment. |
PRELOAD_LIMIT
static final int PRELOAD_LIMIT
- Maximum number of elements to hold in memory at a given moment.
- See Also:
- Constant Field Values
NO_POSITION
static final int NO_POSITION
- See Also:
- Constant Field Values
isEmpty
boolean isEmpty()
iterator
java.util.Iterator<T> iterator()
- Use this if you want a typical iterator over the entire data.
- Specified by:
iterator in interface java.lang.Iterable<T>
- Returns:
- an
Iterator for the entire result set.
getCurrentPage
java.util.List<T> getCurrentPage()
- Returns:
- a single, preloaded page.
nextPage
void nextPage()
onLastPage
boolean onLastPage()
skipTo
void skipTo(int index)
throws PagerException
- Will run the index up to this point. Calling
getCurrentPage() will
then return a page holding this index.
- Parameters:
index - the zero-based index of the item to skip to.
- Throws:
PagerException - - if the number of items in the backing data is exceeded by the index.
getIndex
int getIndex()
- Returns:
- the current index position of the pager
getIndexOfFirstItemInCurrentPage
int getIndexOfFirstItemInCurrentPage()
- Returns:
- the index of the first item in the current page, relative to the start of the set
Copyright © 2005-2015 Atlassian. All Rights Reserved.