Class PageResult<T>

java.lang.Object
org.eclipse.nebula.widgets.pagination.collections.PageResult<T>
Type Parameters:
T - the type item of the paginated list.

public class PageResult<T>
extends java.lang.Object
Page result used to store pagination result information :
  • the total elements
  • the paginated list
  • Constructor Summary

    Constructors 
    Constructor Description
    PageResult​(java.util.List<T> content, long totalElements)
    Constructor with the given paginated list and total elements.
  • Method Summary

    Modifier and Type Method Description
    java.util.List<T> getContent()
    Returns the page content as List.
    long getTotalElements()
    Returns the total amount of elements.

    Methods inherited from class java.lang.Object

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

    • PageResult

      public PageResult​(java.util.List<T> content, long totalElements)
      Constructor with the given paginated list and total elements.
      Parameters:
      content -
      totalElements -
  • Method Details

    • getTotalElements

      public long getTotalElements()
      Returns the total amount of elements.
      Returns:
      the total amount of elements
    • getContent

      public java.util.List<T> getContent()
      Returns the page content as List.
      Returns: