Class PagingOption


  • public class PagingOption
    extends java.lang.Object
    This class provides the flexibility to set the page size for the search results. Developers can specify the start offset, direction and the number of elements that should exist on the page.
    • Constructor Summary

      Constructors 
      Constructor Description
      PagingOption​(int startOffset, int pageSize)  
      PagingOption​(int startOffset, int pageSize, aero.panasonic.inflight.services.common.v2.PagingOption.Direction direction)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      aero.panasonic.inflight.services.common.v2.PagingOption.Direction getDirection()
      Gets the direction.
      int getPageSize()
      Gets the number of elements to be returned per page.
      int getStartOffset()
      Gets the start offset of the pagination option.
      void setDirection​(aero.panasonic.inflight.services.common.v2.PagingOption.Direction direction)
      Sets the direction.
      void setPageSize​(int pageSize)
      Sets the number of elements to be returned per page.
      void setStartOffset​(int startOffset)
      Sets the start offset of the pagination option.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PagingOption

        public PagingOption​(int startOffset,
                            int pageSize)
      • PagingOption

        public PagingOption​(int startOffset,
                            int pageSize,
                            aero.panasonic.inflight.services.common.v2.PagingOption.Direction direction)
    • Method Detail

      • getStartOffset

        public int getStartOffset()
        Gets the start offset of the pagination option. This field is optional.
        Returns:
        start offset
      • getPageSize

        public int getPageSize()
        Gets the number of elements to be returned per page. This field is optional.
        Returns:
        paging size
      • getDirection

        public aero.panasonic.inflight.services.common.v2.PagingOption.Direction getDirection()
        Gets the direction. This field is optional.
        Returns:
        direction
      • setStartOffset

        public void setStartOffset​(int startOffset)
        Sets the start offset of the pagination option.
        Parameters:
        startOffset -
      • setPageSize

        public void setPageSize​(int pageSize)
        Sets the number of elements to be returned per page.
        Parameters:
        pageSize -
      • setDirection

        public void setDirection​(aero.panasonic.inflight.services.common.v2.PagingOption.Direction direction)
        Sets the direction. The default value is UNDEFINED. It only takes effect for Mobile Client Service right now.
        Parameters:
        direction -