Class DefaultNarrowedPageable

    • Constructor Detail

      • DefaultNarrowedPageable

        protected DefaultNarrowedPageable​(long offset,
                                          int size,
                                          boolean isForward,
                                          org.springframework.data.domain.Sort sort,
                                          int underlyingPageSize)
      • DefaultNarrowedPageable

        protected DefaultNarrowedPageable​(long offset,
                                          int size,
                                          boolean isForward,
                                          org.springframework.data.domain.Sort sort)
    • Method Detail

      • of

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

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

        public static DefaultNarrowedPageable of​(long offset,
                                                 int size,
                                                 boolean isForward,
                                                 org.springframework.data.domain.Sort.Direction direction,
                                                 String... properties)
      • of

        public static DefaultNarrowedPageable of​(long offset,
                                                 int size,
                                                 boolean isForward,
                                                 org.springframework.data.domain.Sort sort)
      • of

        public static DefaultNarrowedPageable of​(long offset,
                                                 int size,
                                                 boolean isForward,
                                                 org.springframework.data.domain.Sort sort,
                                                 int underlyingPageSize)
      • next

        public org.springframework.data.domain.Pageable next()
        Specified by:
        next in interface org.springframework.data.domain.Pageable
        Overrides:
        next in class DefaultUnnumberedPageable
      • previousOrFirst

        public org.springframework.data.domain.Pageable previousOrFirst()
        Specified by:
        previousOrFirst in interface org.springframework.data.domain.Pageable
        Overrides:
        previousOrFirst in class DefaultUnnumberedPageable
      • first

        public org.springframework.data.domain.Pageable first()
        Specified by:
        first in interface org.springframework.data.domain.Pageable
        Overrides:
        first in class DefaultUnnumberedPageable
      • getUnderlyingPageSize

        public int getUnderlyingPageSize()
        Description copied from interface: NarrowedPageable
        The number of physical database records processed. This can be different than the narrowed records returned in a page.
        Specified by:
        getUnderlyingPageSize in interface NarrowedPageable
        Returns:
        The number of physical database records processed
      • setUnderlyingPageSize

        public void setUnderlyingPageSize​(int underlyingPageSize)
        Description copied from interface: NarrowedPageable
        The number of physical database records processed. This can be different than the narrowed records returned in a page in the case of a query against items that need to be narrowed. In the case of a query that is not being narrowed, this will always be equal to Pageable.getPageSize()
        Specified by:
        setUnderlyingPageSize in interface NarrowedPageable
        Parameters:
        underlyingPageSize - The number of physical database records processed
      • isForward

        public boolean isForward()
        Description copied from interface: NarrowedPageable
        Whether or not the current NarrowedPageable request represents a forward progression, or a backwards progression.
        Specified by:
        isForward in interface NarrowedPageable
        Returns:
        Whether or not the response page records should be in advance of the offset, or behind the offset.
      • hasPrevious

        public boolean hasPrevious()
        Specified by:
        hasPrevious in interface org.springframework.data.domain.Pageable
        Overrides:
        hasPrevious in class DefaultUnnumberedPageable