Options
All
  • Public
  • Public/Protected
  • All
Menu

A page that has its content normalized into an array of ids and a corresponding map of {id : content item }

param

Array of content ids

param

Map of Id to Content Items

param

The total number of elements in the data set

param

The Pageable containing the paging information

Type parameters

  • I

  • T

Hierarchy

Index

Constructors

constructor

  • new IndexedPage(ids: Array<I>, index: Map<I, T>, totalElements: number, pageable: Pageable): IndexedPage

Properties

first

first: boolean

True if this is the first page

ids

ids: Array<I>

Array of Content Ids (ordered by pageable.sort if populated)

index

index: Map<I, T>

Map of {id : content item}

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 IndexedPage created by running each element of index through iteratee

    Type parameters

    • R

    Parameters

    • iteratee: function

      Method to transform content elements

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

          • t: T
          • i: I

          Returns R

    Returns IndexedPage<I, R>

    Transformed IndexedPage

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