org.sonar.api.utils
Class Paging

java.lang.Object
  extended by org.sonar.api.utils.Paging

public class Paging
extends Object

Since:
3.6

Method Summary
static Paging create(int pageSize, int pageIndex, int totalItems)
           
 int offset()
           
 int pageIndex()
          Page index, starting with 1.
 int pages()
          Number of pages.
 int pageSize()
          Maximum number of items per page.
 int total()
          Total number of items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

pageIndex

public int pageIndex()
Page index, starting with 1.


pageSize

public int pageSize()
Maximum number of items per page. It is greater than 0.


total

public int total()
Total number of items. It is greater than or equal 0.


offset

public int offset()

pages

public int pages()
Number of pages. It is greater than or equal 0.


create

public static Paging create(int pageSize,
                            int pageIndex,
                            int totalItems)


Copyright © 2009-2013 SonarSource. All Rights Reserved.