Class KeysetAwareSliceImpl<T>
java.lang.Object
org.springframework.data.domain.SliceImpl<T>
com.blazebit.persistence.spring.data.base.query.KeysetAwareSliceImpl<T>
- All Implemented Interfaces:
KeysetAwareSlice<T>,Serializable,Iterable<T>,Supplier<Stream<T>>,org.springframework.data.domain.Slice<T>,org.springframework.data.util.Streamable<T>
public class KeysetAwareSliceImpl<T>
extends org.springframework.data.domain.SliceImpl<T>
implements KeysetAwareSlice<T>
- Since:
- 1.6.9
- Author:
- Christian Beikov, Eugen Mayer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionKeysetAwareSliceImpl(com.blazebit.persistence.PagedList<T> list, org.springframework.data.domain.Pageable pageable) KeysetAwareSliceImpl(List<T> list) KeysetAwareSliceImpl(List<T> list, com.blazebit.persistence.KeysetPage keysetPage, org.springframework.data.domain.Pageable pageable) -
Method Summary
Modifier and TypeMethodDescriptiongetConvertedContent(Function<? super T, ? extends U> arg0) com.blazebit.persistence.KeysetPageReturns the keyset page associated to the results of this page.intintorg.springframework.data.domain.PageableintgetSize()org.springframework.data.domain.SortgetSort()booleanbooleanbooleanisFirst()booleanisLast()iterator()Methods inherited from class org.springframework.data.domain.SliceImpl
equals, hashCode, hasNext, map, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.springframework.data.domain.Slice
getContent, getNumber, getNumberOfElements, getPageable, getSize, getSort, hasContent, hasNext, hasPrevious, isFirst, isLast, map, nextOrLastPageable, previousOrFirstPageableMethods inherited from interface org.springframework.data.util.Streamable
and, and, and, and, filter, flatMap, get, isEmpty, stream, toList, toSet
-
Constructor Details
-
KeysetAwareSliceImpl
-
KeysetAwareSliceImpl
public KeysetAwareSliceImpl(com.blazebit.persistence.PagedList<T> list, org.springframework.data.domain.Pageable pageable) -
KeysetAwareSliceImpl
-
-
Method Details
-
getKeysetPage
public com.blazebit.persistence.KeysetPage getKeysetPage()Description copied from interface:KeysetAwareSliceReturns the keyset page associated to the results of this page.- Specified by:
getKeysetPagein interfaceKeysetAwareSlice<T>- Returns:
- The keyset page
-
nextPageable
- Specified by:
nextPageablein interfaceKeysetAwareSlice<T>- Specified by:
nextPageablein interfaceorg.springframework.data.domain.Slice<T>
-
previousPageable
- Specified by:
previousPageablein interfaceKeysetAwareSlice<T>- Specified by:
previousPageablein interfaceorg.springframework.data.domain.Slice<T>
-
getNumber
public int getNumber()- Specified by:
getNumberin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getSize
public int getSize()- Specified by:
getSizein interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getNumberOfElements
public int getNumberOfElements()- Specified by:
getNumberOfElementsin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
isFirst
public boolean isFirst()- Specified by:
isFirstin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
isLast
public boolean isLast()- Specified by:
isLastin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
hasContent
public boolean hasContent()- Specified by:
hasContentin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getContent
- Specified by:
getContentin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getPageable
public org.springframework.data.domain.Pageable getPageable()- Specified by:
getPageablein interfaceorg.springframework.data.domain.Slice<T extends Object>
-
getSort
public org.springframework.data.domain.Sort getSort()- Specified by:
getSortin interfaceorg.springframework.data.domain.Slice<T extends Object>
-
iterator
-
getConvertedContent
-