Spring Data Commons

org.springframework.data.domain
Interface Pageable

All Known Implementing Classes:
PageRequest

public interface Pageable

Abstract interface for pagination information.

Author:
Oliver Gierke

Method Summary
 int getOffset()
          Returns the offset to be taken according to the underlying page and page size.
 int getPageNumber()
          Returns the page to be returned.
 int getPageSize()
          Returns the number of items to be returned.
 Sort getSort()
          Returns the sorting parameters.
 

Method Detail

getPageNumber

int getPageNumber()
Returns the page to be returned.

Returns:
the page to be returned.

getPageSize

int getPageSize()
Returns the number of items to be returned.

Returns:
the number of items of that page

getOffset

int getOffset()
Returns the offset to be taken according to the underlying page and page size.

Returns:
the offset to be taken

getSort

Sort getSort()
Returns the sorting parameters.

Returns:

Spring Data Commons

Copyright © 2012. All Rights Reserved.