Clover Coverage Report
Coverage timestamp: Sa Aug 2 2008 13:56:27 CEST
../../../../img/srcFileCovDistChart6.png 69% of files have more coverage
5   75   5   1
0   19   1   5
5     1  
1    
 
  Enumerator       Line # 27 5 5 60% 0.6
 
  (30)
 
1    /* $Id: Enumerator.java,v 1.1 2008/07/26 07:55:42 m31 Exp $
2    *
3    * This file is part of the project "Hilbert II" - http://www.qedeq.org
4    *
5    * Copyright 2000-2008, Michael Meyling <mime@qedeq.org>.
6    *
7    * "Hilbert II" is free software; you can redistribute
8    * it and/or modify it under the terms of the GNU General Public
9    * License as published by the Free Software Foundation; either
10    * version 2 of the License, or (at your option) any later version.
11    *
12    * This program is distributed in the hope that it will be useful,
13    * but WITHOUT ANY WARRANTY; without even the implied warranty of
14    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15    * GNU General Public License for more details.
16    */
17   
18    package org.qedeq.base.utility;
19   
20    /**
21    * An object of this class represents a number, that could be
22    * compared and increased.
23    *
24    * @version $Revision: 1.1 $
25    * @author Michael Meyling
26    */
 
27    public final class Enumerator {
28   
29    /** The plain number. */
30    private int number;
31   
32    /**
33    * Constructs an object.
34    */
 
35  0 toggle public Enumerator() {
36  0 number = 0;
37    }
38   
39    /**
40    * Constructs an object with given start number.
41    *
42    * @param number Start value.
43    */
 
44  86434101 toggle public Enumerator(final int number) {
45  86434101 this.number = number;
46    }
47   
48   
49    /**
50    * Gets current number.
51    *
52    * @return Current number.
53    */
 
54  139543877 toggle public final int getNumber() {
55  139543877 return number;
56    }
57   
58   
59    /**
60    * Increases current number by one.
61    */
 
62  53109776 toggle public final void increaseNumber() {
63  53109776 number++;
64    }
65   
66    /**
67    * Return number in <code>String</code> format.
68    *
69    * @return Number as <code>String</code>.
70    */
 
71  0 toggle public final String toString() {
72  0 return Integer.toString(number);
73    }
74   
75    }