org.loom.paged
Interface PagedListData<T>

All Superinterfaces:
PagedContainer
All Known Implementing Classes:
PagedListDataImpl

public interface PagedListData<T>
extends PagedContainer

The data of a paged list


Field Summary
 
Fields inherited from interface org.loom.paged.PagedContainer
DEFAULT_PAGE_SIZE
 
Method Summary
 java.util.List<T> getData()
           
 int getNextPageRecordIndex()
           
 int getTotalPages()
           
 int getTotalRecords()
           
 boolean isEmpty()
           
 
Methods inherited from interface org.loom.paged.PagedContainer
getId, getPageIndex, getPageSize, getRecordIndex, getSortOrder, getSortProperty
 

Method Detail

getNextPageRecordIndex

int getNextPageRecordIndex()
Returns:
the zero-based index of the first record on the next page.

isEmpty

boolean isEmpty()
Returns:
true if the list of returned data is empty

getData

java.util.List<T> getData()
Returns:
the data included in this page

getTotalRecords

int getTotalRecords()
Returns:
the total number of records in this query, all pages included

getTotalPages

int getTotalPages()
Returns:
the total number of pages in this query