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 SummaryNested Classes Modifier and Type Class Description static classPaging.Builder
 - 
Method SummaryAll 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- 
forPageIndexpublic static Paging.Builder forPageIndex(int pageIndex) 
 - 
pageIndexpublic int pageIndex() Page index, starting with 1.
 - 
pageSizepublic int pageSize() Maximum number of items per page. It is greater than 0.
 - 
totalpublic int total() Total number of items. It is greater than or equal 0.
 - 
offsetpublic int offset() 
 - 
offsetpublic static int offset(int pageIndex, int pageSize)
 - 
pagespublic int pages() Number of pages. It is greater than or equal 0.
 - 
hasNextPagepublic boolean hasNextPage() - Since:
- 4.1
 
 
- 
 
-