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(org.springframework.data.domain.Pageable pageable)
      Convert a Pageable's offset value from Long to Integer to support JPA spec methods.
      Parameters:
      pageable -
      Returns:
      integer