Class PageArgs

java.lang.Object
org.apache.juneau.objecttools.PageArgs

public class PageArgs extends Object
  • Constructor Details

    • PageArgs

      public PageArgs(int position, int limit)
      Constructor.
      Parameters:
      position - The zero-indexed position to start the page on.
      limit - The number of rows to return.
  • Method Details

    • create

      public static PageArgs create(Integer position, Integer limit)
      Static creator.
      Parameters:
      position - The zero-indexed position to start the page on.
      limit - The number of rows to return.
      Returns:
      A new PageArgs object.
    • getLimit

      public int getLimit()
      Returns the number of rows to return.
      Returns:
      The number of rows to return.
    • getPosition

      public int getPosition()
      Returns the zero-indexed position to start the page on.
      Returns:
      The zero-indexed position to start the page on.