Class PageResponseImpl<T>

java.lang.Object
de.digitalcollections.model.impl.paging.PageResponseImpl<T>
All Implemented Interfaces:
PageResponse<T>, java.lang.Iterable<T>
Direct Known Subclasses:
SearchPageResponseImpl

public class PageResponseImpl<T>
extends java.lang.Object
implements PageResponse<T>
  • Constructor Details

    • PageResponseImpl

      public PageResponseImpl()
    • PageResponseImpl

      public PageResponseImpl​(java.util.List<T> content, PageRequest pageRequest, long total)
      Constructor of PageResponseImpl with the given content and the given governing PageRequest.
      Parameters:
      content - the content of this page, must not be null.
      pageRequest - the paging information, can be null.
      total - the total amount of items available. The total might be adapted considering the length of the content given, if it is going to be the content of the last page. This is in place to mitigate inconsistencies
    • PageResponseImpl

      public PageResponseImpl​(java.util.List<T> content)
      Creates a new PageResponseImpl with the given content. This will result in the created PageResponse being identical to the entire List.
      Parameters:
      content - must not be null.
  • Method Details