KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tirsen > nanning > contract > ContractImpl


1 package com.tirsen.nanning.contract;
2
3 /**
4  * TODO document ContractImpl
5  *
6  * @author <a HREF="mailto:jon_tirsen@yahoo.com">Jon Tirsén</a>
7  * @version $Revision: 1.2 $
8  */

9 public class ContractImpl implements ContractIntf {
10     private int value = 1;
11
12     public int getValue() {
13         return value;
14     }
15
16     public void setValue(int value) {
17         this.value = value;
18     }
19
20     public void increaseBy(int value) {
21         this.value += value;
22     }
23 }
24
Popular Tags