T
- Class
type of the individual elements on this Slice
.public abstract class AbstractSliceSupport<T> extends Object implements org.springframework.data.domain.Slice<T>
AbstractSliceSupport
class is an abstract Spring Data Slice
type
supporting the implementation of application specific Slice
implementations.Converter
,
Page
,
Pageable
,
Slice
,
Sort
Constructor and Description |
---|
AbstractSliceSupport() |
Modifier and Type | Method and Description |
---|---|
List<T> |
getContent() |
int |
getNumber() |
int |
getNumberOfElements() |
int |
getSize() |
org.springframework.data.domain.Sort |
getSort() |
boolean |
hasContent() |
boolean |
hasNext() |
boolean |
hasPrevious() |
boolean |
isFirst() |
boolean |
isLast() |
Iterator<T> |
iterator() |
<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() |
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 boolean hasContent()
hasContent
in interface org.springframework.data.domain.Slice<T>
public boolean hasNext()
hasNext
in interface org.springframework.data.domain.Slice<T>
public boolean hasPrevious()
hasPrevious
in interface org.springframework.data.domain.Slice<T>
public boolean isFirst()
isFirst
in interface org.springframework.data.domain.Slice<T>
public boolean isLast()
isLast
in interface org.springframework.data.domain.Slice<T>
public List<T> getContent()
getContent
in interface org.springframework.data.domain.Slice<T>
public int getNumber()
getNumber
in interface org.springframework.data.domain.Slice<T>
public int getNumberOfElements()
getNumberOfElements
in interface org.springframework.data.domain.Slice<T>
public int getSize()
getSize
in interface org.springframework.data.domain.Slice<T>
public org.springframework.data.domain.Sort getSort()
getSort
in interface org.springframework.data.domain.Slice<T>
public <S> org.springframework.data.domain.Slice<S> map(Function<? super T,? extends S> converter)
public org.springframework.data.domain.Pageable nextPageable()
nextPageable
in interface org.springframework.data.domain.Slice<T>
public org.springframework.data.domain.Pageable previousPageable()
previousPageable
in interface org.springframework.data.domain.Slice<T>
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.