Changed getFirstItem() of Pageable to getOffset().
This commit is contained in:
@@ -110,7 +110,7 @@ public class PageRequest implements Pageable {
|
||||
*
|
||||
* @see org.springframework.data.domain.Pageable#getFirstItem()
|
||||
*/
|
||||
public int getFirstItem() {
|
||||
public int getOffset() {
|
||||
|
||||
return page * size;
|
||||
}
|
||||
|
||||
@@ -39,11 +39,12 @@ public interface Pageable {
|
||||
|
||||
|
||||
/**
|
||||
* Returns the first item relatively to the total number of items.
|
||||
* Returns the offset to be taken according to the underlying page and page
|
||||
* size.
|
||||
*
|
||||
* @return the first item to be returned
|
||||
* @return the offset to be taken
|
||||
*/
|
||||
int getFirstItem();
|
||||
int getOffset();
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user