Class Pageable

    • Constructor Detail

      • Pageable

        public Pageable​(int page,
                        int size)
        Parameters:
        page - must not be less than one.
        size - must not be less than one.
      • Pageable

        public Pageable​(int page,
                        int size,
                        Sort.Direction direction,
                        String... properties)
      • Pageable

        public Pageable​(int page,
                        int size,
                        Sort sort)
    • Method Detail

      • get

        public static Pageable get()
        page=1,size=20
        Returns:
      • getPageSize

        public int getPageSize()
      • getPageNumber

        public int getPageNumber()
      • getSort

        public Sort getSort()
      • setSort

        public void setSort​(Sort sort)
      • getOffset

        public int getOffset()
      • hasPrevious

        public boolean hasPrevious()