Class ChunkRequest

  • All Implemented Interfaces:
    Serializable, org.springframework.data.domain.Pageable

    public class ChunkRequest
    extends Object
    implements org.springframework.data.domain.Pageable, Serializable
    A request for a chunk of data options an offset and limit instead of page numbers and page sizes.
    See Also:
    Serialized Form
    • Constructor Detail

      • ChunkRequest

        @Deprecated
        public ChunkRequest​(long offset,
                            int limit)
        Deprecated.
      • ChunkRequest

        @Deprecated
        public ChunkRequest​(long offset,
                            int limit,
                            org.springframework.data.domain.Sort sort)
        Deprecated.
    • Method Detail

      • getPageNumber

        public int getPageNumber()
        Specified by:
        getPageNumber in interface org.springframework.data.domain.Pageable
      • getPageSize

        public int getPageSize()
        Specified by:
        getPageSize in interface org.springframework.data.domain.Pageable
      • next

        public org.springframework.data.domain.Pageable next()
        Specified by:
        next in interface org.springframework.data.domain.Pageable
      • first

        public org.springframework.data.domain.Pageable first()
        Specified by:
        first in interface org.springframework.data.domain.Pageable
      • hasPrevious

        public boolean hasPrevious()
        Specified by:
        hasPrevious in interface org.springframework.data.domain.Pageable
      • previousOrFirst

        public org.springframework.data.domain.Pageable previousOrFirst()
        Specified by:
        previousOrFirst in interface org.springframework.data.domain.Pageable
      • getOffset

        public long getOffset()
        Specified by:
        getOffset in interface org.springframework.data.domain.Pageable
      • getSort

        public org.springframework.data.domain.Sort getSort()
        Specified by:
        getSort in interface org.springframework.data.domain.Pageable
      • of

        public static ChunkRequest of​(long offset,
                                      int limit)
      • of

        public static ChunkRequest of​(long offset,
                                      int limit,
                                      org.springframework.data.domain.Sort sort)
      • of

        public static ChunkRequest of​(long offset,
                                      int limit,
                                      org.springframework.data.domain.Sort.Direction direction,
                                      String... properties)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object