com.atlassian.bamboo.plugins.rest.util
Class Paginator

java.lang.Object
  extended by com.atlassian.bamboo.plugins.rest.util.Paginator

public class Paginator
extends java.lang.Object


Constructor Summary
Paginator()
           
 
Method Summary
static
<T> java.util.Collection<T>
getLast(java.util.Collection<T> input, javax.ws.rs.core.UriInfo uriInfo)
           
static org.apache.commons.lang.math.IntRange getPaginateRange(java.util.Collection input, javax.ws.rs.core.UriInfo uriInfo)
           
static
<T> java.util.Collection<T>
paginate(java.util.Collection<T> input, org.apache.commons.lang.math.IntRange range)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Paginator

public Paginator()
Method Detail

getLast

public static <T> java.util.Collection<T> getLast(java.util.Collection<T> input,
                                                  javax.ws.rs.core.UriInfo uriInfo)

getPaginateRange

public static org.apache.commons.lang.math.IntRange getPaginateRange(java.util.Collection input,
                                                                     javax.ws.rs.core.UriInfo uriInfo)

paginate

public static <T> java.util.Collection<T> paginate(java.util.Collection<T> input,
                                                   org.apache.commons.lang.math.IntRange range)


Copyright © 2011 Atlassian. All Rights Reserved.