Class PageableUtils

java.lang.Object
org.springframework.data.jpa.support.PageableUtils

public final class PageableUtils extends Object
Provide a set of utility methods to support Pageables.
Since:
3.0
Author:
Greg Turnquist
  • Method Details

    • getOffsetAsInteger

      public static int getOffsetAsInteger(Pageable pageable)
      Convert a Pageable's offset value from Long to Integer to support JPA spec methods.
      Parameters:
      pageable -
      Returns:
      integer