java.lang.Object |
↳ |
com.atlassian.stash.util.FilteredPageImpl<T> |
Class Overview
An instance of Page
that supports pagination across an underlying paged collection.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.stash.util.Page
@Deprecated
@Nullable
String
|
getFilter()
This method is deprecated.
Deprecated in Stash 2.0 for removal in 3.0. When a caller provides a filter for a search, it is
expected that the caller will retain knowledge of that filter in order to apply it to subsequent
pages as they are requested. Additionally, because many types support filtering which is more
complex than can be applied by a single String , the support for including the filter with
the page offered by this parameter is frequently insufficient. Existing code which populates this
property will continue to do so, but has been deprecated for removal. Such methods will document
the expected behaviour moving forward.
|
boolean
|
getIsLastPage()
|
int
|
getLimit()
|
@Nullable
PageRequest
|
getNextPageRequest()
|
@Nullable
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>
Page<E>
|
transform(Function<? super T, ? extends E> transformFunction)
Transforms the page from a page of Ts to a page of Es
|
|
Public Constructors
public
FilteredPageImpl
(PageRequest pageRequest, int size, SortedMap<Integer, T> valueMap, boolean lastPage)
Public Methods
@Nullable
public
String
getFilter
()
public
boolean
getIsLastPage
()
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.
@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 |