1 16 package org.apache.commons.collections; 17 18 import java.util.Collection ; 19 import java.util.Map ; 20 import java.util.Set ; 21 22 44 public abstract class ProxyMap implements Map { 45 46 49 protected Map map; 50 51 60 public ProxyMap(Map map) { 61 this.map = map; 62 } 63 64 67 public void clear() { 68 map.clear(); 69 } 70 71 74 public boolean containsKey(Object key) { 75 return map.containsKey(key); 76 } 77 78 81 public boolean containsValue(Object value) { 82 return map.containsValue(value); 83 } 84 85 88 public Set entrySet() { 89 return map.entrySet(); 90 } 91 92 95 public boolean equals(Object m) { 96 return map.equals(m); 97 } 98 99 102 public Object get(Object key) { 103 return map.get(key); 104 } 105 106 109 public int hashCode() { 110 return map.hashCode(); 111 } 112 113 116 public boolean isEmpty() { 117 return map.isEmpty(); 118 } 119 120 123 public Set keySet() { 124 return map.keySet(); 125 } 126 127 130 public Object put(Object key, Object value) { 131 return map.put(key, value); 132 } 133 134 137 public void putAll(Map t) { 138 map.putAll(t); 139 } 140 141 144 public Object remove(Object key) { 145 return map.remove(key); 146 } 147 148 151 public int size() { 152 return map.size(); 153 } 154 155 158 public Collection values() { 159 return map.values(); 160 } 161 162 } 163 | Popular Tags |