public class

SimplePullRequestActivityPage

extends Object
implements PullRequestActivityPage<T extends PullRequestActivity>
java.lang.Object
   ↳ com.atlassian.bitbucket.pull.SimplePullRequestActivityPage<T extends com.atlassian.bitbucket.pull.PullRequestActivity>

Summary

[Expand]
Inherited Constants
From interface com.atlassian.bitbucket.pull.PullRequestActivityPage
Public Constructors
SimplePullRequestActivityPage(Page<T> page, long previousPageStartId)
Public Methods
boolean getIsFirstPage()
boolean getIsLastPage()
int getLimit()
PageRequest getNextPageRequest()
SortedMap<Integer, T> getOrdinalIndexedValues()
Get a map of the page values mapped by their ordinal values.
long getPreviousPageStartId()
int getSize()
int getStart()
@Nonnull Iterable<T> getValues()
@Nonnull <E> Page<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.pull.PullRequestActivityPage
From interface com.atlassian.bitbucket.util.Page

Public Constructors

public SimplePullRequestActivityPage (Page<T> page, long previousPageStartId)

Public Methods

public boolean getIsFirstPage ()

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 long getPreviousPageStartId ()

public int getSize ()

public int getStart ()

@Nonnull public Iterable<T> getValues ()

@Nonnull public Page<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