Class RequestLimit


  • public class RequestLimit
    extends Object
    Contains maximum number of result to return and index of the first element.
    Since:
    1.1.2, 1.2M2
    Version:
    $Id: 1597f8bdd73a0d6581e54b3bc19b8bd7831917db $
    • Constructor Detail

      • RequestLimit

        public RequestLimit​(int nb,
                            int start)
        Construct new instance of RequestLimit with provided nb and start.
        Parameters:
        nb - the maximum number of result to return.
        start - the index of the first found element to return.
    • Method Detail

      • setNb

        public void setNb​(int nb)
        Parameters:
        nb - the maximum number of result to return.
      • getNb

        public int getNb()
        Returns:
        the maximum number of result to return.
      • setStart

        public void setStart​(int start)
        Parameters:
        start - the index of the first found element to return.
      • getStart

        public int getStart()
        Returns:
        the index of the first found element to return.