com.atlassian.user.search.page
Class MergedPager

java.lang.Object
  extended bycom.atlassian.user.search.page.MergedPager
All Implemented Interfaces:
Pager

Deprecated. use MergedListPager

public class MergedPager
extends java.lang.Object
implements Pager


Field Summary
 
Fields inherited from interface com.atlassian.user.search.page.Pager
EMPTY_PAGER, NO_POSITION, PRELOAD_LIMIT
 
Method Summary
 java.util.List getCurrentPage()
          Deprecated.  
 int getIndex()
          Deprecated.  
 int getIndexOfFirstItemInCurrentPage()
          Deprecated.  
 boolean isEmpty()
          Deprecated.  
 java.util.Iterator iterator()
          Deprecated. Use this if you want a typical iterator over the entire data.
 void nextPage()
          Deprecated.  
 boolean onLastPage()
          Deprecated.  
 void skipTo(int index)
          Deprecated. Will run the index up to this point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isEmpty

public boolean isEmpty()
Deprecated. 
Specified by:
isEmpty in interface Pager

iterator

public java.util.Iterator iterator()
Deprecated. 
Description copied from interface: Pager
Use this if you want a typical iterator over the entire data.

Specified by:
iterator in interface Pager
Returns:
an Iterator for the entire result set.

getCurrentPage

public java.util.List getCurrentPage()
Deprecated. 
Specified by:
getCurrentPage in interface Pager
Returns:
a single, preloaded page.

nextPage

public void nextPage()
Deprecated. 
Specified by:
nextPage in interface Pager

onLastPage

public boolean onLastPage()
Deprecated. 
Specified by:
onLastPage in interface Pager

skipTo

public void skipTo(int index)
            throws PagerException
Deprecated. 
Description copied from interface: Pager
Will run the index up to this point. Calling Pager.getCurrentPage() will then return a page holding this index.

Specified by:
skipTo in interface Pager
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

public int getIndex()
Deprecated. 
Specified by:
getIndex in interface Pager
Returns:
the current index position of the pager

getIndexOfFirstItemInCurrentPage

public int getIndexOfFirstItemInCurrentPage()
Deprecated. 
Specified by:
getIndexOfFirstItemInCurrentPage in interface Pager
Returns:
the index of the first item in the current page, relative to the start of the set


Copyright © 2005-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.