Modifier and Type | Class and Description |
---|---|
static class |
Paging.Builder |
Modifier and Type | Method and Description |
---|---|
static Paging |
create(int pageSize,
int pageIndex,
int totalItems)
Deprecated.
since 5.2 please use the forPageIndex(...) builder method
|
static Paging.Builder |
forPageIndex(int pageIndex) |
boolean |
hasNextPage() |
int |
offset() |
static int |
offset(int pageIndex,
int pageSize) |
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.
|
@Deprecated public static Paging create(int pageSize, int pageIndex, int totalItems)
public static Paging.Builder forPageIndex(int pageIndex)
public int pageIndex()
public int pageSize()
public int total()
public int offset()
public static int offset(int pageIndex, int pageSize)
public int pages()
public boolean hasNextPage()
Copyright © 2009–2016 SonarSource. All rights reserved.