|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Slice<T>
A slice of data that indicates whether there's a next or previous slice available. Allows to obtain a
Pageable to request a previous or next Slice.
| Method Summary | |
|---|---|
List<T> |
getContent()
Returns the page content as List. |
int |
getNumber()
Returns the number of the current Slice. |
int |
getNumberOfElements()
Returns the number of elements currently on this Slice. |
int |
getSize()
Returns the size of the Slice. |
Sort |
getSort()
Returns the sorting parameters for the Slice. |
boolean |
hasContent()
Returns whether the Slice has content at all. |
boolean |
hasNext()
Returns if there is a next Slice. |
boolean |
hasPrevious()
Returns if there is a previous Slice. |
boolean |
isFirst()
Returns whether the current Slice is the first one. |
boolean |
isLast()
Returns whether the current Slice is the last one. |
Pageable |
nextPageable()
Returns the Pageable to request the next Slice. |
Pageable |
previousPageable()
Returns the Pageable to request the previous Slice. |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
int getNumber()
Slice. Is always non-negative.
Slice.int getSize()
Slice.
Slice.int getNumberOfElements()
Slice.
Slice.List<T> getContent()
List.
boolean hasContent()
Slice has content at all.
Sort getSort()
Slice.
boolean isFirst()
Slice is the first one.
boolean isLast()
Slice is the last one.
boolean hasNext()
Slice.
Slice.boolean hasPrevious()
Slice.
Slice.Pageable nextPageable()
Pageable to request the next Slice. Can be null in case the current
Slice is already the last one. Clients should check hasNext() before calling this method to make
sure they receive a non-null value.
Pageable previousPageable()
Pageable to request the previous Slice. Can be null in case the current
Slice is already the first one. Clients should check hasPrevious() before calling this method make
sure receive a non-null value.
|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||