public abstract class PageList<E> extends Object
subclass and
an implementation of the ListAccess interface.| Modifier and Type | Field and Description |
|---|---|
protected int |
available_
Deprecated.
|
protected int |
availablePage_
Deprecated.
|
protected List<E> |
currentListPage_
Deprecated.
|
protected int |
currentPage_
Deprecated.
|
static PageList |
EMPTY_LIST
Deprecated.
|
| Constructor and Description |
|---|
PageList(int pageSize)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAndSetPage(int page)
Deprecated.
|
List<E> |
currentPage()
Deprecated.
|
abstract List<E> |
getAll()
Deprecated.
|
int |
getAvailable()
Deprecated.
Returns the number of available elements.
|
int |
getAvailablePage()
Deprecated.
Returns the number of available pages.
|
int |
getCurrentPage()
Deprecated.
Returns the current page index.
|
int |
getFrom()
Deprecated.
Returns the from index.
|
List<E> |
getPage(int page)
Deprecated.
Updates the current page index and retrieves the element from that page.
|
int |
getPageSize()
Deprecated.
Returns the page size.
|
int |
getTo()
Deprecated.
Returns the to index.
|
protected abstract void |
populateCurrentPage(int page)
Deprecated.
|
protected void |
setAvailablePage(int available)
Deprecated.
|
void |
setPageSize(int pageSize)
Deprecated.
Updates the page size.
|
public static final PageList EMPTY_LIST
protected int available_
protected int availablePage_
protected int currentPage_
public int getPageSize()
public void setPageSize(int pageSize)
pageSize - the new page size valuepublic int getCurrentPage()
public int getAvailable()
public int getAvailablePage()
protected abstract void populateCurrentPage(int page)
throws Exception
Exceptionpublic List<E> getPage(int page) throws Exception
page - the page indexException - an exceptionprotected void checkAndSetPage(int page)
throws Exception
Exceptionprotected void setAvailablePage(int available)
public int getFrom()
public int getTo()
Copyright © 2021 eXo Platform SAS. All Rights Reserved.