Interface UntotalledPage<T>

  • All Superinterfaces:
    Iterable<T>, org.springframework.data.domain.Page<T>, org.springframework.data.domain.Slice<T>, org.springframework.data.util.Streamable<T>, Supplier<Stream<T>>
    All Known Implementing Classes:
    DefaultUntotalledPage

    public interface UntotalledPage<T>
    extends org.springframework.data.domain.Page<T>
    Denotes a Page in which total and page number information is not supported. UntotalledPages should facilitate paging without knowing the total number of records, or what page you're on. This can be more efficient than traditional paging, since a second query to get the total record count on each page request is not required. The paging is open-ended and there's no constant indication of how many pages there are. While a little less informative, this is acceptable with most modern paging techniques.
    Author:
    Jeff Fischer
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default int getNumber()  
      default long getTotalElements()  
      default int getTotalPages()  
      • Methods inherited from interface org.springframework.data.domain.Page

        map
      • Methods inherited from interface org.springframework.data.domain.Slice

        getContent, getNumberOfElements, getPageable, getSize, getSort, hasContent, hasNext, hasPrevious, isFirst, isLast, nextOrLastPageable, nextPageable, previousOrFirstPageable, previousPageable
      • Methods inherited from interface org.springframework.data.util.Streamable

        and, and, and, and, filter, flatMap, get, isEmpty, stream, toList, toSet
    • Method Detail

      • getTotalPages

        default int getTotalPages()
        Specified by:
        getTotalPages in interface org.springframework.data.domain.Page<T>
      • getTotalElements

        default long getTotalElements()
        Specified by:
        getTotalElements in interface org.springframework.data.domain.Page<T>
      • getNumber

        default int getNumber()
        Specified by:
        getNumber in interface org.springframework.data.domain.Slice<T>