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() |
Sort |
getSort() |
boolean |
hasNext() |
boolean |
hasPrevious() |
<S> Slice<S> |
map(Function<? super T,? extends S> converter) |
Pageable |
nextPageable() |
Pageable |
previousPageable() |
getNumberOfElements, getSize, hasContent, isFirst, isLast, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPageable, nextOrLastPageable, previousOrFirstPageable
and, and, and, and, empty, filter, flatMap, get, isEmpty, of, of, of, stream, toList, toSet, toStreamable, toStreamable
forEach, spliterator
public static final EmptySlice<Object> EMPTY_SLICE
public boolean hasNext()
public boolean hasPrevious()
hasPrevious
in interface Slice<T>
hasPrevious
in class AbstractSliceSupport<T>
public List<T> getContent()
getContent
in interface Slice<T>
getContent
in class AbstractSliceSupport<T>
public int getNumber()
public Sort getSort()
public Pageable nextPageable()
nextPageable
in interface Slice<T>
nextPageable
in class AbstractSliceSupport<T>
public Pageable previousPageable()
previousPageable
in interface Slice<T>
previousPageable
in class AbstractSliceSupport<T>
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.