01: /*
02: * $Id: Count.java 459625 2006-03-04 16:17:41Z ehillenius $ $Revision: 459625 $
03: * $Date: 2006-03-04 17:17:41 +0100 (Sat, 04 Mar 2006) $
04: *
05: * ==============================================================================
06: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
07: * use this file except in compliance with the License. You may obtain a copy of
08: * the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15: * License for the specific language governing permissions and limitations under
16: * the License.
17: */
18: package wicket.util.value;
19:
20: /**
21: * A class for counting things.
22: *
23: * @author Jonathan Locke
24: */
25: public final class Count {
26: /** The count */
27: private int count = 0;
28:
29: /**
30: * @return Returns the count.
31: */
32: public int getCount() {
33: return count;
34: }
35:
36: /**
37: * Increases the count
38: */
39: public void increment() {
40: count++;
41: }
42: }
|