1 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 ; 30 import java.util.Collection ; 31 import java.util.Map ; 32 import java.util.Set ; 33 34 public class GenericCacheImplEmpty implements JalistoCache { 35 36 public GenericCacheImplEmpty() { 37 } 38 39 public void init(int size, String 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 key) { 53 return false; 54 } 55 56 public boolean containsValue(Object value) { 57 return false; 58 } 59 60 public Set entrySet() { 61 return null; 62 } 63 64 public Object get(Object key) { 65 return null; 66 } 67 68 public Set keySet() { 69 return null; 70 } 71 72 public Object put(Object key, Object value) { 73 return null; 74 } 75 76 public void putAll(Map t) { 77 } 78 79 public Object remove(Object key) { 80 return null; 81 } 82 83 public int size() { 84 return 0; 85 } 86 87 public Collection 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 out) { 99 out.println("Generic Cache Empty Implementation"); 100 } 101 } 102 | Popular Tags |