Class PagingOption
- java.lang.Object
-
- aero.panasonic.inflight.services.common.v2.PagingOption
-
public class PagingOption extends java.lang.ObjectThis 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.DirectiongetDirection()Gets the direction.intgetPageSize()Gets the number of elements to be returned per page.intgetStartOffset()Gets the start offset of the pagination option.voidsetDirection(aero.panasonic.inflight.services.common.v2.PagingOption.Direction direction)Sets the direction.voidsetPageSize(int pageSize)Sets the number of elements to be returned per page.voidsetStartOffset(int startOffset)Sets the start offset of the pagination option.
-
-
-
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-
-
-