| java.lang.Object | |
| ↳ | com.atlassian.bitbucket.util.PageImpl<T> |
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a page from the provided
values and explicitly sets getIsLastPage(). | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Performs an action on each result in the page.
| |||||||||||
Get a map of the page values mapped by their ordinal values.
| |||||||||||
Transforms the results on the page, producing a new
Page with different values but
all other properties (e.g. | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.bitbucket.util.Page
| |||||||||||
Creates a page from the provided values and explicitly sets getIsLastPage() and
size. The next PageRequest will be inferred from the
start and limit of the provided
PageRequest.
| pageRequest | the page request used to create this page |
|---|---|
| size | the size of the page - i.e. the number of elements in this page |
| values | an iterable of the values |
| lastPage | if this is the last page |
Creates a page from the provided values and explicitly sets getIsLastPage() and
size. The next PageRequest will start from the specified
nextPageStart, with the same limit as the provided PageRequest.
| pageRequest | the page request used to create this page |
|---|---|
| values | an iterable of the values |
| lastPage | if this is the last page |
| size | the size of the page - i.e. the number of elements in this page |
| nextPageStart | index of the element that will be the first in the next page |
Creates a page from the provided values and explicitly sets getIsLastPage().
| pageRequest | the page request used to create this page |
|---|---|
| values | an iterable of the values |
| lastPage | if this is the last page |
Performs an action on each result in the page.
| action | the action to apply to each result |
|---|
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.
Transforms the results on the page, producing a new Page with different values but
all other properties (e.g. start and limit) unchanged.
Implementation note: Transformation is done eagerly to ensure the resulting Page does
not retain a reference to the original results from the source page. If a transform is used purely to apply
some set of side effects, consider using forEach(Consumer super T>) instead.
| transformFunction | the transformer |
|---|