Class Pageables
- java.lang.Object
-
- io.jenkins.blueocean.rest.pageable.Pageables
-
public abstract class Pageables extends Object
- Author:
- Kohsuke Kawaguchi
-
-
Method Detail
-
empty
public static <T> Pageable<T> empty()
Returns an emptyPageable
- Type Parameters:
T
- type of Pageable item- Returns:
- empty pageable collection
-
slice
public static <T> Iterator<T> slice(Iterator<T> base, int start, int limit)
- Type Parameters:
T
- type of Pageable item- Parameters:
base
- base collectionstart
- starting index requested from collectionlimit
- max number of item requested in the page- Returns:
- iterator with starting index==start and size < limit
-
-