KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > yan > testmodel > MyCache


1 /*****************************************************************************
2  * Copyright (C) Zephyr Business Solution. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  *****************************************************************************/

8
9 /*
10  * Created on Apr 15, 2005
11  *
12  * Author Ben Yu
13  * ZBS
14  */

15 package tests.jfun.yan.testmodel;
16
17 /**
18  * Zephyr Business Solution
19  *
20  * @author Ben Yu
21  *
22  */

23 public class MyCache implements ICache{
24   private String JavaDoc name;
25   private int capacity;
26   
27   public int getCapacity() {
28     return capacity;
29   }
30   public String JavaDoc getName() {
31     return name;
32   }
33   
34   public MyCache() {
35   }
36   public void setCapacity(int capacity) {
37     this.capacity = capacity;
38   }
39   public void setName(String JavaDoc name) {
40     this.name = name;
41   }
42   
43   public MyCache(String JavaDoc name, int capacity) {
44     this.name = name;
45     this.capacity = capacity;
46   }
47 }
48
Popular Tags