Class PageResult

  • All Implemented Interfaces:

    
    public final class PageResult<T extends Object>
    
                        

    Pagination result with total count.

    Used by pageable queries whose server response includes a total-count field (e.g. group-member search, group-application list).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final List<T> data
      private final Integer totalCount
    • Constructor Summary

      Constructors 
      Constructor Description
      PageResult(List<T> data, Integer totalCount)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final List<T> getData() Data list for the current page
      final Integer getTotalCount() Total number of items matching the query
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PageResult

        PageResult(List<T> data, Integer totalCount)
    • Method Detail

      • getData

         final List<T> getData()

        Data list for the current page

      • getTotalCount

         final Integer getTotalCount()

        Total number of items matching the query