com.atlassian.confluence.api.model.pagination
Class SimplePageRequest

java.lang.Object
  extended by com.atlassian.confluence.api.model.pagination.SimplePageRequest
All Implemented Interfaces:
PageRequest

public class SimplePageRequest
extends Object
implements PageRequest

A simple immutable implementation of PageRequest


Field Summary
static PageRequest ONE
           
 
Constructor Summary
SimplePageRequest(int start, int limit)
           
SimplePageRequest(LimitedRequest request)
           
 
Method Summary
 int getLimit()
           
 int getStart()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ONE

public static PageRequest ONE
Constructor Detail

SimplePageRequest

public SimplePageRequest(LimitedRequest request)

SimplePageRequest

public SimplePageRequest(int start,
                         int limit)
Method Detail

getLimit

public int getLimit()
Specified by:
getLimit in interface PageRequest
Returns:
the number of the results to return in the page

getStart

public int getStart()
Specified by:
getStart in interface PageRequest
Returns:
start index for the page of results

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003–2015 Atlassian. All rights reserved.