Class Pager

java.lang.Object
com.exedio.cops.Pager

public final class Pager extends Object
  • Method Details

    • addParameters

      public void addParameters(Cop cop)
    • getOffset

      public int getOffset()
    • getLimit

      public int getLimit()
    • init

      public void init(int page, int total)
    • init

      public <E> List<E> init(List<E> all)
      Returns:
      a subList of all corresponding the the current page of the pager.
    • isFirst

      public boolean isFirst()
    • isLast

      public boolean isLast()
    • first

      public Pager first()
    • last

      public Pager last()
    • previous

      public Pager previous()
    • next

      public Pager next()
    • switchLimit

      public Pager switchLimit(int newLimit)
    • newLimits

      public List<Pager> newLimits()
    • hasBeforeNewPages

      public boolean hasBeforeNewPages()
    • hasAfterNewPages

      public boolean hasAfterNewPages()
    • newPages

      public List<Pager> 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()