java.lang.Object
org.springframework.data.r2dbc.repository.support.ScrollDelegate

public class ScrollDelegate extends Object
Delegate to handle scroll queries and create result Window.
Since:
3.1.4
Author:
Mark Paluch
  • Constructor Details

    • ScrollDelegate

      public ScrollDelegate()
  • Method Details

    • getFirst

      public static <T> List<T> getFirst(int count, List<T> list)
      Return the first count items from the list.
      Type Parameters:
      T - the element type of the lists.
      Parameters:
      count - the number of first elements to be included in the returned list.
      list - must not be null
      Returns:
      the returned sublist if the list is greater count.