KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > StupidSimpleDSOClientCounter


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest;
5
6 public class StupidSimpleDSOClientCounter {
7   
8   private int count;
9   
10   public int getCount() {
11     return this.count;
12   }
13   
14   public void incrementCount() {
15     this.count++;
16   }
17   
18   public String JavaDoc toString() {
19     return getClass().getName() + ".count= " + this.count;
20   }
21 }
22
Popular Tags