Package com.exedio.cops
Class Pager
java.lang.Object
com.exedio.cops.Pager
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameters(Cop cop) first()intgetFrom()intgetLimit()intintgetPage()intgetTo()intgetTotal()intbooleanbooleanvoidinit(int page, int total) <E> List<E>booleanisFirst()booleanisLast()booleanisNeeded()booleanbooleanlast()newPages()next()previous()switchLimit(int newLimit)
-
Method Details
-
addParameters
-
getOffset
public int getOffset() -
getLimit
public int getLimit() -
init
public void init(int page, int total) -
init
- Returns:
- a subList of
allcorresponding the the current page of the pager.
-
isFirst
public boolean isFirst() -
isLast
public boolean isLast() -
first
-
last
-
previous
-
next
-
switchLimit
-
newLimits
-
hasBeforeNewPages
public boolean hasBeforeNewPages() -
hasAfterNewPages
public boolean hasAfterNewPages() -
newPages
-
getFrom
public int getFrom() -
getTo
public int getTo() -
getTotal
public int getTotal() -
isTotalEmpty
public boolean isTotalEmpty() -
getPage
public int getPage() -
getTotalPages
public int getTotalPages() -
isNeeded
public boolean isNeeded() -
isNeutral
public boolean isNeutral()
-