public abstract class PagingOffset extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
counter |
protected int |
startOffset |
protected int |
threshold |
Constructor and Description |
---|
PagingOffset(int startOffset,
int threshold) |
Modifier and Type | Method and Description |
---|---|
abstract int |
current() |
boolean |
hasNext() |
abstract boolean |
isDescending() |
void |
next() |
static PagingOffset |
of(int startOffset,
int threshold) |
abstract int |
startDelta() |
int |
startOffset() |
int |
threshold() |
protected final int startOffset
protected final int threshold
protected int counter
public abstract boolean isDescending()
public final int startOffset()
public abstract int startDelta()
public final int threshold()
public final boolean hasNext()
public final void next()
public abstract int current()
public static PagingOffset of(int startOffset, int threshold)
Copyright © 2011–2017. All rights reserved.