public abstract class Pagination extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Pagination.LongPages
page.
|
| Constructor and Description |
|---|
Pagination() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Pair<Integer,List<T>> |
page(long start,
long howMany,
Collection<T> collection)
Creates a page view of a collection.
|
static <T,C extends Collection<T>> |
page(long start,
long howMany,
Collection<T> in,
C out)
Creates a page view of a collection adding elements to the out
collection.
|
static <T> Pair<Integer,List<T>> |
page(long start,
long howMany,
Iterable<T> iterable)
Creates a page view of an iterable.
|
static <T,C extends Collection<T>> |
page(long start,
long howMany,
Iterable<T> iterable,
C collection)
Creates a page view of an iterable adding elements to the collection.
|
static <T> Pair<Integer,List<T>> |
page(long start,
long howMany,
Iterator<T> iterator)
Creates a page view of an iterator.
|
static <T,C extends Collection<T>> |
page(long start,
long howMany,
Iterator<T> iterator,
C collection)
Creates a page view of an iterator adding elements to the collection.
|
static <T> Pair<Integer,List<T>> |
page(long start,
long howMany,
T[] array)
Creates a page view of an array.
|
static <T,C extends Collection<T>> |
page(long start,
long howMany,
T[] array,
C collection)
Creates a page view of an array adding elements to the collection.
|
public static <T> Pair<Integer,List<T>> page(long start, long howMany, Iterator<T> iterator)
T - the element type parameterstart - the index where the page startshowMany - the page sizeiterator - the iterator to be slicedpublic static <T,C extends Collection<T>> Pair<Integer,C> page(long start, long howMany, Iterator<T> iterator, C collection)
T - the element type parameterC - the collection type parameterstart - the index where the page startshowMany - the page sizeiterator - the iterator to be slicedcollection - the output collectionpublic static <T> Pair<Integer,List<T>> page(long start, long howMany, Iterable<T> iterable)
T - the element type parameterstart - the index where the page startshowMany - the page sizeiterable - the iterable to be slicedpublic static <T,C extends Collection<T>> Pair<Integer,C> page(long start, long howMany, Iterable<T> iterable, C collection)
T - the element type parameterC - the collection type parameterstart - the index where the page startshowMany - the page sizeiterable - the iterable to be slicedcollection - the output collectionpublic static <T> Pair<Integer,List<T>> page(long start, long howMany, T[] array)
T - the element type parameterstart - the index where the page startshowMany - the page sizearray - the array to be slicedpublic static <T,C extends Collection<T>> Pair<Integer,C> page(long start, long howMany, T[] array, C collection)
T - the element type parameterC - the collection type parameterstart - the index where the page startshowMany - the page sizearray - the array to be slicedcollection - the output collectionpublic static <T> Pair<Integer,List<T>> page(long start, long howMany, Collection<T> collection)
T - the element type parameterstart - the index where the page startshowMany - the page sizecollection - the iterable to be slicedpublic static <T,C extends Collection<T>> Pair<Integer,C> page(long start, long howMany, Collection<T> in, C out)
T - the element type parameterC - the collection type parameterstart - the index where the page startshowMany - the page sizein - the iterable to be slicedout - the output collectionCopyright © 2017. All rights reserved.