T - Class type of the elements in this Slice.public abstract class EmptySlice<T> extends AbstractSliceSupport<T>
EmptySlice class is an implementation of an empty Spring Data Slice.Pageable,
Slice,
Sort,
AbstractSliceSupport| Modifier and Type | Field and Description |
|---|---|
static EmptySlice<Object> |
EMPTY_SLICE |
| Constructor and Description |
|---|
EmptySlice() |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
getContent() |
int |
getNumber() |
org.springframework.data.domain.Sort |
getSort() |
boolean |
hasNext() |
boolean |
hasPrevious() |
<S> org.springframework.data.domain.Slice<S> |
map(Function<? super T,? extends S> converter) |
org.springframework.data.domain.Pageable |
nextPageable() |
org.springframework.data.domain.Pageable |
previousPageable() |
getNumberOfElements, getSize, hasContent, isFirst, isLast, iteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPageable, nextOrLastPageable, previousOrFirstPageableand, and, and, and, empty, filter, flatMap, get, isEmpty, of, of, of, stream, toList, toSet, toStreamable, toStreamableforEach, spliteratorpublic static final EmptySlice<Object> EMPTY_SLICE
public boolean hasNext()
hasNext in interface org.springframework.data.domain.Slice<T>hasNext in class AbstractSliceSupport<T>public boolean hasPrevious()
hasPrevious in interface org.springframework.data.domain.Slice<T>hasPrevious in class AbstractSliceSupport<T>public List<T> getContent()
getContent in interface org.springframework.data.domain.Slice<T>getContent in class AbstractSliceSupport<T>public int getNumber()
getNumber in interface org.springframework.data.domain.Slice<T>getNumber in class AbstractSliceSupport<T>public org.springframework.data.domain.Sort getSort()
getSort in interface org.springframework.data.domain.Slice<T>getSort in class AbstractSliceSupport<T>public org.springframework.data.domain.Pageable nextPageable()
nextPageable in interface org.springframework.data.domain.Slice<T>nextPageable in class AbstractSliceSupport<T>public org.springframework.data.domain.Pageable previousPageable()
previousPageable in interface org.springframework.data.domain.Slice<T>previousPageable in class AbstractSliceSupport<T>Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.