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 Details

    • KeysetAwareSliceImpl

      public KeysetAwareSliceImpl(List<T> list)
    • KeysetAwareSliceImpl

      public KeysetAwareSliceImpl(com.blazebit.persistence.PagedList<T> list, org.springframework.data.domain.Pageable pageable)
    • KeysetAwareSliceImpl

      public KeysetAwareSliceImpl(List<T> list, com.blazebit.persistence.KeysetPage keysetPage, org.springframework.data.domain.Pageable pageable)
  • Method Details

    • getKeysetPage

      public com.blazebit.persistence.KeysetPage getKeysetPage()
      Description copied from interface: KeysetAwareSlice
      Returns the keyset page associated to the results of this page.
      Specified by:
      getKeysetPage in interface KeysetAwareSlice<T>
      Returns:
      The keyset page
    • nextPageable

      public KeysetPageable nextPageable()
      Specified by:
      nextPageable in interface KeysetAwareSlice<T>
      Specified by:
      nextPageable in interface org.springframework.data.domain.Slice<T>
    • previousPageable

      public KeysetPageable previousPageable()
      Specified by:
      previousPageable in interface KeysetAwareSlice<T>
      Specified by:
      previousPageable in interface org.springframework.data.domain.Slice<T>
    • getNumber

      public int getNumber()
      Specified by:
      getNumber in interface org.springframework.data.domain.Slice<T extends Object>
    • getSize

      public int getSize()
      Specified by:
      getSize in interface org.springframework.data.domain.Slice<T extends Object>
    • getNumberOfElements

      public int getNumberOfElements()
      Specified by:
      getNumberOfElements in interface org.springframework.data.domain.Slice<T extends Object>
    • hasPrevious

      public boolean hasPrevious()
      Specified by:
      hasPrevious in interface org.springframework.data.domain.Slice<T extends Object>
    • isFirst

      public boolean isFirst()
      Specified by:
      isFirst in interface org.springframework.data.domain.Slice<T extends Object>
    • isLast

      public boolean isLast()
      Specified by:
      isLast in interface org.springframework.data.domain.Slice<T extends Object>
    • hasContent

      public boolean hasContent()
      Specified by:
      hasContent in interface org.springframework.data.domain.Slice<T extends Object>
    • getContent

      public List<T> getContent()
      Specified by:
      getContent in interface org.springframework.data.domain.Slice<T extends Object>
    • getPageable

      public org.springframework.data.domain.Pageable getPageable()
      Specified by:
      getPageable in interface org.springframework.data.domain.Slice<T extends Object>
    • getSort

      public org.springframework.data.domain.Sort getSort()
      Specified by:
      getSort in interface org.springframework.data.domain.Slice<T extends Object>
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T extends Object>
    • getConvertedContent

      protected <U extends Object> List<U> getConvertedContent(Function<? super T,? extends U> arg0)