Annotation Type PaginationParam


  • @Target(PARAMETER)
    @Retention(RUNTIME)
    @Documented
    public @interface PaginationParam
    Indicates that a parameter contains data for creating a Pageable.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int defaultPageNumber
      Indicates the page number when this value is not provided.
      int defaultPageSize
      Indicates the size of a page when this value is not provided.
      int maxPageSize
      Indicates the maximum page size that is accepted for the page.
    • Element Detail

      • defaultPageSize

        int defaultPageSize
        Indicates the size of a page when this value is not provided.
        Returns:
        The default page size to be used.
        Default:
        25
      • defaultPageNumber

        int defaultPageNumber
        Indicates the page number when this value is not provided.
        Returns:
        The default page number to be used.
        Default:
        0
      • maxPageSize

        int maxPageSize
        Indicates the maximum page size that is accepted for the page.
        Returns:
        The max. page size for the page.
        Default:
        100