Class LimitOffsetPageRequest

  • All Implemented Interfaces:
    org.springframework.data.domain.Pageable

    public class LimitOffsetPageRequest
    extends Object
    implements org.springframework.data.domain.Pageable
    Custom Pageable used to get Vaadin and Spring to cooperate
    Author:
    Leon Chemnitz
    • Constructor Detail

      • LimitOffsetPageRequest

        public LimitOffsetPageRequest​(int limit,
                                      int offset)
    • Method Detail

      • getPageNumber

        public int getPageNumber()
        Specified by:
        getPageNumber in interface org.springframework.data.domain.Pageable
      • getPageSize

        public int getPageSize()
        Specified by:
        getPageSize in interface org.springframework.data.domain.Pageable
      • getOffset

        public long getOffset()
        Specified by:
        getOffset in interface org.springframework.data.domain.Pageable
      • getSort

        public org.springframework.data.domain.Sort getSort()
        Specified by:
        getSort in interface org.springframework.data.domain.Pageable
      • next

        public org.springframework.data.domain.Pageable next()
        Specified by:
        next in interface org.springframework.data.domain.Pageable
      • previous

        public org.springframework.data.domain.Pageable previous()
      • previousOrFirst

        public org.springframework.data.domain.Pageable previousOrFirst()
        Specified by:
        previousOrFirst in interface org.springframework.data.domain.Pageable
      • first

        public org.springframework.data.domain.Pageable first()
        Specified by:
        first in interface org.springframework.data.domain.Pageable
      • hasPrevious

        public boolean hasPrevious()
        Specified by:
        hasPrevious in interface org.springframework.data.domain.Pageable