aerogear-controller 1.0.2

org.jboss.aerogear.controller.router.rest.pagination
Class PaginationProperties

java.lang.Object
  extended by org.jboss.aerogear.controller.router.rest.pagination.PaginationProperties

public class PaginationProperties
extends Object

Properties related to the offset/limit pagination strategy.


Field Summary
private  int limit
           
private  int offset
           
private  com.google.common.base.Optional<Integer> total
           
 
Constructor Summary
PaginationProperties(int offset, int limit)
           
PaginationProperties(int offset, int limit, int total)
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

offset

private final int offset

limit

private final int limit

total

private final com.google.common.base.Optional<Integer> total
Constructor Detail

PaginationProperties

public PaginationProperties(int offset,
                            int limit)

PaginationProperties

public PaginationProperties(int offset,
                            int limit,
                            int total)
Method Detail

checkValues

private void checkValues(int offset,
                         int limit)

offset

public int offset()

limit

public int limit()

total

public com.google.common.base.Optional<Integer> total()

nextOffset

public int nextOffset()

previousOffset

public int previousOffset()

isFirstOffset

public boolean isFirstOffset()

isLastOffset

public boolean isLastOffset()

isOffsetGreaterThanTotal

public boolean isOffsetGreaterThanTotal()

toString

public String toString()
Overrides:
toString in class Object

aerogear-controller 1.0.2

Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.