KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jalisto > se > impl > cache > GenericCacheImplEmpty


1 /*
2  * Jalisto - JAva LIght STOrage
3  * Copyright (C) 2000-2005 Xcalia http://www.xcalia.com
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
18  *
19  * Xcalia
20  * 71, rue Desnouettes
21  * 75014 Paris - France
22  * http://www.xcalia.com
23  */

24 package org.objectweb.jalisto.se.impl.cache;
25
26 import org.objectweb.jalisto.se.api.cache.JalistoCache;
27 import org.objectweb.jalisto.se.impl.trace.Trace;
28
29 import java.io.PrintStream JavaDoc;
30 import java.util.Collection JavaDoc;
31 import java.util.Map JavaDoc;
32 import java.util.Set JavaDoc;
33
34 public class GenericCacheImplEmpty implements JalistoCache {
35
36     public GenericCacheImplEmpty() {
37     }
38
39     public void init(int size, String JavaDoc name, double clearPourcent) {
40     }
41
42     public void setTrace(Trace trace) {
43     }
44
45     public boolean isEmpty() {
46         return true;
47     }
48
49     public void clear() {
50     }
51
52     public boolean containsKey(Object JavaDoc key) {
53         return false;
54     }
55
56     public boolean containsValue(Object JavaDoc value) {
57         return false;
58     }
59
60     public Set JavaDoc entrySet() {
61         return null;
62     }
63
64     public Object JavaDoc get(Object JavaDoc key) {
65         return null;
66     }
67
68     public Set JavaDoc keySet() {
69         return null;
70     }
71
72     public Object JavaDoc put(Object JavaDoc key, Object JavaDoc value) {
73         return null;
74     }
75
76     public void putAll(Map JavaDoc t) {
77     }
78
79     public Object JavaDoc remove(Object JavaDoc key) {
80         return null;
81     }
82
83     public int size() {
84         return 0;
85     }
86
87     public Collection JavaDoc values() {
88         return null;
89     }
90
91     public int getMaxSize() {
92         return 0;
93     }
94
95     public void setMaxSize(int size) {
96     }
97
98     public void print(PrintStream JavaDoc out) {
99         out.println("Generic Cache Empty Implementation");
100     }
101 }
102
Popular Tags