org.granite.spring.data
Class OffsetPageRequest

java.lang.Object
  extended by org.granite.spring.data.OffsetPageRequest
All Implemented Interfaces:
org.springframework.data.domain.Pageable

public class OffsetPageRequest
extends Object
implements org.springframework.data.domain.Pageable


Constructor Summary
OffsetPageRequest(int offset, int pageSize, org.springframework.data.domain.Sort sort)
           
 
Method Summary
 org.springframework.data.domain.Pageable first()
           
 int getOffset()
           
 int getPageNumber()
           
 int getPageSize()
           
 org.springframework.data.domain.Sort getSort()
           
 boolean hasPrevious()
           
 org.springframework.data.domain.Pageable next()
           
 org.springframework.data.domain.Pageable previousOrFirst()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OffsetPageRequest

public OffsetPageRequest(int offset,
                         int pageSize,
                         org.springframework.data.domain.Sort sort)
Method Detail

getOffset

public int getOffset()
Specified by:
getOffset in interface org.springframework.data.domain.Pageable

getPageNumber

public int getPageNumber()
Specified by:
getPageNumber in interface org.springframework.data.domain.Pageable

getPageSize

public int getPageSize()
Specified by:
getPageSize in interface org.springframework.data.domain.Pageable

getSort

public org.springframework.data.domain.Sort getSort()
Specified by:
getSort in interface org.springframework.data.domain.Pageable

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface org.springframework.data.domain.Pageable

first

public org.springframework.data.domain.Pageable first()
Specified by:
first in interface org.springframework.data.domain.Pageable

previousOrFirst

public org.springframework.data.domain.Pageable previousOrFirst()
Specified by:
previousOrFirst in interface org.springframework.data.domain.Pageable

next

public org.springframework.data.domain.Pageable next()
Specified by:
next in interface org.springframework.data.domain.Pageable