com.atlassian.confluence.api.model.pagination
Class LimitedRequestImpl
java.lang.Object
com.atlassian.confluence.api.model.pagination.LimitedRequestImpl
- All Implemented Interfaces:
- LimitedRequest
@ExperimentalApi
public class LimitedRequestImpl
- extends Object
- implements LimitedRequest
LimitedRequestImpl
protected LimitedRequestImpl(PageRequest request,
int maxLimit)
LimitedRequestImpl
protected LimitedRequestImpl(int start,
int limit,
int maxLimit)
LimitedRequestImpl
protected LimitedRequestImpl(int start,
int limit,
int needed,
int maxLimit)
create
public static LimitedRequest create(PageRequest request,
int maxLimit)
create
public static LimitedRequest create(int maxLimit)
create
public static LimitedRequest create(int start,
int limit,
int maxLimit)
getNeeded
public int getNeeded()
- Specified by:
getNeeded
in interface LimitedRequest
- Returns:
- the number of results needed to return to fulfill this request, may exceed getLimit
getStart
public int getStart()
- Description copied from interface:
LimitedRequest
- start index for the page of results
- Specified by:
getStart
in interface LimitedRequest
getLimit
public int getLimit()
- Specified by:
getLimit
in interface LimitedRequest
- Returns:
- the maximum results to fetch to attempt to fulfil the request
getMaxLimit
public int getMaxLimit()
- Specified by:
getMaxLimit
in interface LimitedRequest
- Returns:
- the maximum limit for this request
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2003–2015 Atlassian. All rights reserved.