Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a sublist of a list of objects. Provides details about the total list, including whether there is more data available.

param

The content to be returned

param

The total number of elements in the data set

param

The Pageable containing the paging information

Type parameters

  • T

Hierarchy

Index

Constructors

constructor

  • new ArrayPage(content?: Array<T>, totalElements: number, pageable: Pageable): ArrayPage

Properties

content

content: Array<T>

Array of content

first

first: boolean

True if this is the first page

last

last: boolean

True if this is the last page in the available data set

number

number: number

The number of the current page

numberOfElements

numberOfElements: number = 0

Number of elements in the current page

size

size: number

Size of the page (based on requested value)

sort

sort: Sort | undefined

Sort of this page

totalElements

totalElements: number

Total number of elements available

totalPages

totalPages: number

Total number of pages available

Methods

map

  • Returns a new Page created by invoking iteratee on each element in content

    Type parameters

    • R

    Parameters

    • iteratee: function

      Method to transform content elements

        • (t: T, i: number): R
        • Parameters

          • t: T
          • i: number

          Returns R

    Returns ArrayPage<R>

    Instance of Page

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc