1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package com.xpn.xwiki.plugin.rightsmanager.utils

File RequestLimit.java

 

Coverage histogram

../../../../../../img/srcFileCovDistChart10.png
0% of files have more coverage

Code metrics

0
6
5
1
84
27
5
0.83
1.2
5
1

Classes

Class Line # Actions
RequestLimit 29 6 0% 5 0
1.0100%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package com.xpn.xwiki.plugin.rightsmanager.utils;
21   
22    /**
23    * Contains maximum number of result to return and index of the first element.
24    *
25    * @version $Id: 1597f8bdd73a0d6581e54b3bc19b8bd7831917db $
26    * @since 1.1.2
27    * @since 1.2M2
28    */
 
29    public class RequestLimit
30    {
31    /**
32    * The maximum number of result to return.
33    */
34    private int nb;
35   
36    /**
37    * The index of the first found element to return.
38    */
39    private int start;
40   
41    /**
42    * Construct new instance of RequestLimit with provided nb and start.
43    *
44    * @param nb the maximum number of result to return.
45    * @param start the index of the first found element to return.
46    */
 
47  5 toggle public RequestLimit(int nb, int start)
48    {
49  5 this.setNb(nb);
50  5 this.setStart(start);
51    }
52   
53    /**
54    * @param nb the maximum number of result to return.
55    */
 
56  5 toggle public void setNb(int nb)
57    {
58  5 this.nb = nb;
59    }
60   
61    /**
62    * @return the maximum number of result to return.
63    */
 
64  5 toggle public int getNb()
65    {
66  5 return this.nb;
67    }
68   
69    /**
70    * @param start the index of the first found element to return.
71    */
 
72  5 toggle public void setStart(int start)
73    {
74  5 this.start = start;
75    }
76   
77    /**
78    * @return the index of the first found element to return.
79    */
 
80  5 toggle public int getStart()
81    {
82  5 return this.start;
83    }
84    }