Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1476

Add Slice.nextOrLastPageable() and ....previousOrFirstPageable()

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2 M2 (Moore)
    • Component/s: Core
    • Labels:
      None
    • Sprint:
      Lovelace SR1

      Description

      The standard Slice.nextPageable() and ....previousPageable() allow the Pageable lookups to exceed out side of the scope of the result into Pageable.unpaged(). That however causes a next request for a Page or Slice to return the entire result set.

      The to be added methods could keep the lookup inside the result window and return the last or first Pageable if the current Page/Slice is already the last or first one.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                olivergierke Oliver Drotbohm
                Reporter:
                olivergierke Oliver Drotbohm
                Last updater:
                Christoph Strobl
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: