1 18 package org.apache.activemq.kaha; 19 20 import java.util.Collection ; 21 import java.util.Map ; 22 import java.util.Set ; 23 24 30 public interface MapContainer<K, V> extends Map <K, V>{ 31 32 33 39 public void load(); 40 41 45 public void unload(); 46 47 50 public boolean isLoaded(); 51 52 57 public void setKeyMarshaller(Marshaller<K> keyMarshaller); 58 59 65 public void setValueMarshaller(Marshaller<V> valueMarshaller); 66 69 public Object getId(); 70 71 74 public int size(); 75 76 79 public boolean isEmpty(); 80 81 85 public boolean containsKey(K key); 86 87 92 public V get(K key); 93 94 95 99 public boolean containsValue(K o); 100 101 105 public void putAll(Map <K,V> map); 106 107 110 public Set <K> keySet(); 111 112 116 public Collection <V> values(); 117 118 122 public Set <Map.Entry <K,V>> entrySet(); 123 124 125 131 public V put(K key,V value); 132 133 134 139 public V remove(K key); 140 141 144 public void clear(); 145 146 152 public StoreEntry place(K key, V Value); 153 154 158 public void remove(StoreEntry entry); 159 160 165 public K getKey(StoreEntry keyLocation); 166 167 172 public V getValue(StoreEntry Valuelocation); 173 174 178 public StoreEntry getFirst(); 179 180 185 public StoreEntry getLast(); 186 187 193 public StoreEntry getNext(StoreEntry entry); 194 195 201 public StoreEntry getPrevious(StoreEntry entry); 202 203 204 210 public StoreEntry refresh(StoreEntry entry); 211 212 217 public StoreEntry getEntry(K key); 218 } 219 | Popular Tags |