java.lang.Iterable<T>KeysetAwarePage<T>, KeysetAwareSlice<T>, Page<T>public interface Slice<T>
extends java.lang.Iterable<T>
Slice.| Modifier and Type | Method | Description |
|---|---|---|
Pageable |
currentPageable() |
|
java.util.List<T> |
getContent() |
Returns the slice content as Slice.
|
int |
getNumber() |
Returns the number of the current Slice.
|
int |
getNumberOfElements() |
Returns the actual number of elements currently on this Slice.
|
int |
getSize() |
Returns the size of the Slice i.e. what was request via
Pageable.getPageSize(). |
Sort |
getSort() |
Returns the sorting that was used for pagination.
|
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() |
|
Pageable |
previousPageable() |
int getNumber()
int getSize()
Pageable.getPageSize().int getNumberOfElements()
java.util.List<T> getContent()
boolean hasContent()
true if the content is non-empty, false otherwiseSort getSort()
boolean isFirst()
true if the getNumber() is 0, false otherwiseboolean isLast()
true if this is the last slice, false otherwiseboolean hasNext()
true if nextPageable() will return results, false otherwiseboolean hasPrevious()
true if the getNumber() is greater than 0, false otherwisePageable nextPageable()
Copyright © 2014–2018 Blazebit. All rights reserved.