Interface ListPage<E>
-
- Type Parameters:
E- - list element type
- All Superinterfaces:
Collection<E>,Iterable<E>,List<E>,org.alfresco.query.PagingResults<E>,SerializablePagedCollection<E>
- All Known Implementing Classes:
ArrayListPage
@Experimental public interface ListPage<E> extends List<E>, org.alfresco.query.PagingResults<E>, SerializablePagedCollection<E>
List page with paging information.
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default Collection<E>getCollection()Returns the Collection objectdefault List<E>getPage()default Pair<Integer,Integer>getTotalResultCount()static <E> CollectionWithPagingInfo<E>of(List<? extends E> list, Paging paging)Builds a collection with paging information.-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Methods inherited from interface org.alfresco.rest.framework.resource.SerializablePagedCollection
getContext, getPaging, getSourceEntity, getTotalItems, hasMoreItems
-
-
-
-
Method Detail
-
getPage
default List<E> getPage()
- Specified by:
getPagein interfaceorg.alfresco.query.PagingResults<E>
-
getTotalResultCount
default Pair<Integer,Integer> getTotalResultCount()
- Specified by:
getTotalResultCountin interfaceorg.alfresco.query.PagingResults<E>
-
getCollection
default Collection<E> getCollection()
Description copied from interface:SerializablePagedCollectionReturns the Collection object- Specified by:
getCollectionin interfaceSerializablePagedCollection<E>- Returns:
- Collection
-
of
static <E> CollectionWithPagingInfo<E> of(List<? extends E> list, Paging paging)
Builds a collection with paging information.- Type Parameters:
E- - list element type- Parameters:
list- - the list that needs to be pagedpaging- - paging request info- Returns:
- list page in
CollectionWithPagingInfo
-
-