Class SliceImpl<T>
java.lang.Object
org.springframework.data.domain.SliceImpl<T>
- All Implemented Interfaces:
Serializable,Iterable<T>,Supplier<Stream<T>>,Slice<T>,Streamable<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the page content asList.protected <U> List<U> getConvertedContent(Function<? super T, ? extends U> converter) intReturns the number of the currentSlice.intReturns the number of elements currently on thisSlice.intgetSize()Returns the size of theSlice.getSort()Returns the sorting parameters for theSlice.booleanReturns whether theSlicehas content at all.inthashCode()booleanhasNext()Returns if there is a nextSlice.booleanReturns if there is a previousSlice.booleanisFirst()Returns whether the currentSliceis the first one.booleanisLast()Returns whether the currentSliceis the last one.iterator()<U> Slice<U> toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.springframework.data.domain.Slice
nextOrLastPageable, previousOrFirstPageable
-
Constructor Details
-
SliceImpl
- Parameters:
content- the content of thisSlice, must not be null.pageable- the paging information, must not be null.hasNext- whether there's another slice following the current one.
-
SliceImpl
-
-
Method Details
-
hasNext
-
map
Description copied from interface:Slice -
equals
-
hashCode
public int hashCode() -
toString
-
getNumber
-
getSize
-
getNumberOfElements
-
hasPrevious
-
isFirst
-
isLast
-
nextPageable
Description copied from interface:SliceReturns thePageableto request the nextSlice. Can bePageable.unpaged()in case the currentSliceis already the last one. Clients should checkSlice.hasNext()before calling this method.- Specified by:
nextPageablein interfaceSlice<T>- Returns:
- the
Pageableto request the nextSlice. - See Also:
-
previousPageable
Description copied from interface:SliceReturns thePageableto request the previousSlice. Can bePageable.unpaged()in case the currentSliceis already the first one. Clients should checkSlice.hasPrevious()before calling this method.- Specified by:
previousPageablein interfaceSlice<T>- Returns:
- the
Pageableto request the previousSlice. - See Also:
-
hasContent
-
getContent
-
getPageable
-
getSort
-
iterator
-
getConvertedContent
-