Package org.sonar.api.utils
Class Paging
- java.lang.Object
-
- org.sonar.api.utils.Paging
-
public class Paging extends java.lang.Object- Since:
- 3.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaging.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Paging.BuilderforPageIndex(int pageIndex)booleanhasNextPage()intoffset()static intoffset(int pageIndex, int pageSize)intpageIndex()Page index, starting with 1.intpages()Number of pages.intpageSize()Maximum number of items per page.inttotal()Total number of items.
-
-
-
Method Detail
-
forPageIndex
public static Paging.Builder forPageIndex(int pageIndex)
-
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()
-
offset
public static int offset(int pageIndex, int pageSize)
-
pages
public int pages()
Number of pages. It is greater than or equal 0.
-
hasNextPage
public boolean hasNextPage()
- Since:
- 4.1
-
-