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

public interface ListPage<E> extends List<E>, org.alfresco.query.PagingResults<E>, SerializablePagedCollection<E>
List page with paging information.
  • Method Details

    • getPage

      default List<E> getPage()
      Specified by:
      getPage in interface org.alfresco.query.PagingResults<E>
    • getTotalResultCount

      default Pair<Integer,Integer> getTotalResultCount()
      Specified by:
      getTotalResultCount in interface org.alfresco.query.PagingResults<E>
    • getCollection

      default Collection<E> getCollection()
      Description copied from interface: SerializablePagedCollection
      Returns the Collection object
      Specified by:
      getCollection in interface SerializablePagedCollection<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 paged
      paging - - paging request info
      Returns:
      list page in CollectionWithPagingInfo