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<java.lang.Object> |
EMPTY_SLICE |
Constructor and Description |
---|
EmptySlice() |
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
getContent() |
int |
getNumber() |
org.springframework.data.domain.Sort |
getSort() |
boolean |
hasNext() |
boolean |
hasPrevious() |
<S> org.springframework.data.domain.Slice<S> |
map(java.util.function.Function<? super T,? extends S> converter) |
org.springframework.data.domain.Pageable |
nextPageable() |
org.springframework.data.domain.Pageable |
previousPageable() |
getNumberOfElements, getSize, hasContent, isFirst, isLast, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPageable, nextOrLastPageable, previousOrFirstPageable
public static final EmptySlice<java.lang.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 java.util.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>
public <S> org.springframework.data.domain.Slice<S> map(java.util.function.Function<? super T,? extends S> converter)
map
in interface org.springframework.data.domain.Slice<T>
map
in interface org.springframework.data.util.Streamable<T>
map
in class AbstractSliceSupport<T>