public class Paging
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
endIsOpen
The end timestamp of this interval is open (excluded).
|
org.joda.time.Interval |
interval
The time interval, if any.
|
int |
limit
The maximum items returned.
|
int |
start
The start index.
|
boolean |
startIsOpen
The start timestamp of this interval is open (excluded).
|
| Constructor and Description |
|---|
Paging(int start,
int limit)
Creates simple paging.
|
Paging(int start,
int limit,
org.joda.time.Interval interval)
Creates paging within an interval.
|
Paging(int start,
int limit,
org.joda.time.Interval interval,
boolean startIsOpen,
boolean endIsOpen)
Creates paging within an interval.
|
| Modifier and Type | Method and Description |
|---|---|
Paging |
withOpenEnd(boolean openEnd)
Creates paging with an open end.
|
Paging |
withOpenStart(boolean openStart)
Creates paging with an open start.
|
public final int start
public final int limit
public final org.joda.time.Interval interval
public final boolean startIsOpen
false.public final boolean endIsOpen
false.public Paging(int start,
int limit,
org.joda.time.Interval interval,
boolean startIsOpen,
boolean endIsOpen)
start - The start index.limit - The maximum items returned.interval - The interval.startIsOpen - Is the start of the interval open, if specified.endIsOpen - Is the end of the interval open, if specified.public Paging(int start,
int limit,
org.joda.time.Interval interval)
start - The start index.limit - The maximum items returned.interval - The interval.public Paging(int start,
int limit)
start - The start index.limit - The maximum items returned.public Paging withOpenStart(boolean openStart)
openStart - Is the start of the interval open?public Paging withOpenEnd(boolean openEnd)
openEnd - Is the end of the interval open?