public class

FilteredPageImpl

extends Object
implements Page<T>
java.lang.Object
   ↳ com.atlassian.bitbucket.util.FilteredPageImpl<T>

Class Overview

An instance of Page that supports pagination across an underlying paged collection.

Summary

Public Constructors
FilteredPageImpl(PageRequest pageRequest, int size, SortedMap<Integer, T> valueMap, boolean lastPage)
Public Methods
boolean getIsLastPage()
int getLimit()
PageRequest getNextPageRequest()
SortedMap<Integer, T> getOrdinalIndexedValues()
Get a map of the page values mapped by their ordinal values.
int getSize()
int getStart()
@Nonnull Iterable<T> getValues()
@Nonnull <E> FilteredPageImpl<E> transform(Function<? super T, ? extends E> transformFunction)
Transforms the page from a page of Ts to a page of Es
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bitbucket.util.Page

Public Constructors

public FilteredPageImpl (PageRequest pageRequest, int size, SortedMap<Integer, T> valueMap, boolean lastPage)

Public Methods

public boolean getIsLastPage ()

public int getLimit ()

public PageRequest getNextPageRequest ()

public SortedMap<Integer, T> getOrdinalIndexedValues ()

Get a map of the page values mapped by their ordinal values. For filtered pages, the ordinals are the ordinals in the underlying paged collection.

Returns
  • The values mapped by their ordinal value in the page.

public int getSize ()

public int getStart ()

@Nonnull public Iterable<T> getValues ()

@Nonnull public FilteredPageImpl<E> transform (Function<? super T, ? extends E> transformFunction)

Transforms the page from a page of Ts to a page of Es

Parameters
transformFunction the transformer
Returns
  • the new page of E