KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openlaszlo > test > xmlrpc > Counter


1 /******************************************************************************
2  * Counter.java
3  * ****************************************************************************/

4
5 /* J_LZ_COPYRIGHT_BEGIN *******************************************************
6 * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
7 * Use is subject to license terms. *
8 * J_LZ_COPYRIGHT_END *********************************************************/

9
10 package org.openlaszlo.test.xmlrpc;
11
12 public class Counter
13 {
14     protected int mCount = 0;
15
16     public Counter() {
17     }
18
19     public Counter(int count) {
20         mCount = count;
21     }
22
23     public int increment() {
24         return ++mCount;
25     }
26
27     public int getCount() {
28         return mCount;
29     }
30 }
31
Popular Tags