public final class Paging extends Object
| Modifier and Type | Field and Description |
|---|---|
static Paging |
DEFAULT_START
A default start page with offset 0 and limit 64.
|
| Modifier and Type | Method and Description |
|---|---|
static Paging |
at(int offset,
int limit)
Creates a new paging at the given offset and limit.
|
Paging |
next()
Address the next paging.
|
Paging |
previous()
Address the previous paging.
|
public static final Paging DEFAULT_START
public static Paging at(int offset, int limit)
offset - the positive offset of the page.limit - the maximum number of entries.public Paging previous()
offset - limit and keeps the
limit. Will return 0 if going beyond offset 0.public Paging next()
offset + limit and keeps the
limit.Copyright © 2017. All rights reserved.