public class PaginationProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
private int |
limit |
private int |
offset |
private com.google.common.base.Optional<Integer> |
total |
| Constructor and Description |
|---|
PaginationProperties(int offset,
int limit) |
PaginationProperties(int offset,
int limit,
int total) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkValues(int offset,
int limit) |
boolean |
isFirstOffset() |
boolean |
isLastOffset() |
boolean |
isOffsetGreaterThanTotal() |
int |
limit() |
int |
nextOffset() |
int |
offset() |
int |
previousOffset() |
String |
toString() |
com.google.common.base.Optional<Integer> |
total() |
private final int offset
private final int limit
private final com.google.common.base.Optional<Integer> total
public PaginationProperties(int offset,
int limit)
public PaginationProperties(int offset,
int limit,
int total)
private void checkValues(int offset,
int limit)
public int offset()
public int limit()
public com.google.common.base.Optional<Integer> total()
public int nextOffset()
public int previousOffset()
public boolean isFirstOffset()
public boolean isLastOffset()
public boolean isOffsetGreaterThanTotal()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.