public class CollectionWithPagingInfo<T> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
CollectionWithPagingInfo(Collection<T> collection,
Paging paging,
boolean hasMoreItems,
Integer totalItems)
Constructs a new CollectionWithPagingInfo.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> CollectionWithPagingInfo<T> |
asPaged(Paging paging,
Collection<T> aCollection)
Constructs a new CollectionWithPagingInfo.
|
static <T> CollectionWithPagingInfo<T> |
asPaged(Paging paging,
Collection<T> aCollection,
boolean hasMoreItems,
Integer totalItems)
Constructs a new CollectionWithPagingInfo.
|
static <T> CollectionWithPagingInfo<T> |
asPagedCollection(T... entity)
Constructs a new CollectionWithPagingInfo using a number of entity values.
|
Collection<T> |
getCollection()
Returns the Collection object
|
Paging |
getPaging()
The requested paging parameters set by the client
|
Integer |
getTotalItems()
Indicates the total number of items available.
|
boolean |
hasMoreItems()
Indicates if the returned collection has more items after the current returned list.
|
protected CollectionWithPagingInfo(Collection<T> collection, Paging paging, boolean hasMoreItems, Integer totalItems)
aCollection - - the collection that needs to be paged.hasMoreItems - - Are there more items after this Collection?paging - - Paging request infototalItems - - The total number of items available.public static <T> CollectionWithPagingInfo<T> asPaged(Paging paging, Collection<T> aCollection)
paging - - Paging request infoaCollection - - the collection that needs to be paged.public static <T> CollectionWithPagingInfo<T> asPagedCollection(T... entity)
entity - - the entities to turn into a collectionpublic static <T> CollectionWithPagingInfo<T> asPaged(Paging paging, Collection<T> aCollection, boolean hasMoreItems, Integer totalItems)
paging - - Paging request infoaCollection - - the collection that needs to be paged.hasMoreItems - - Are there more items after this Collection?totalItems - - The total number of items available.public Collection<T> getCollection()
public boolean hasMoreItems()
hasMoreItems - public Integer getTotalItems()
public Paging getPaging()
Copyright © 2005–2014 Alfresco Software. All rights reserved.