public class CacheMap extends TreeMap<String,Object>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CacheMap(int maxSize,
int evictSize)
Constructor of cache map.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object key) |
Object |
matchStartsWith(String prefix)
Search a key that starts with the specified prefix from the map, and
return the value corresponding to the key.
|
Object |
put(String key,
Object val) |
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, putAll, remove, size, subMap, subMap, tailMap, tailMap, valuesequals, hashCode, isEmpty, toStringpublic CacheMap(int maxSize,
int evictSize)
maxSize - maximum size of the mapevictSize - number of evict object