KickJava   Java API By Example, From Geeks To Geeks.

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


1 /* ****************************************************************************
2  * PeerCounter.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 PeerCounter extends Counter
13 {
14     int myNum;
15
16     public PeerCounter() {
17         myNum = mCount;
18     }
19
20     public int getPeerNum()
21     {
22         return myNum;
23     }
24
25     public int decrement()
26     {
27         return --mCount;
28     }
29
30     public void reset()
31     {
32         mCount = 0;
33     }
34
35 }
36
Popular Tags