/**
* Cached entries.
*/
- private HashMap<KeyType, ValueType> _map;
+ private HashMap<KeyType, ValueType> map;
/**
* Constructs the cache.
*
*/
public ForeverCache() {
- _map = new HashMap<KeyType, ValueType>();
+ map = new HashMap<KeyType, ValueType>();
}
/*
* @see org.wamblee.cache.Cache#put(KeyType, ValueType)
*/
public synchronized void put(KeyType aKey, ValueType aValue) {
- _map.put(aKey, aValue);
+ map.put(aKey, aValue);
}
/*
* @see org.wamblee.cache.Cache#get(KeyType)
*/
public synchronized ValueType get(KeyType aKey) {
- return _map.get(aKey);
+ return map.get(aKey);
}
/*
* @see org.wamblee.cache.Cache#remove(KeyType)
*/
public synchronized void remove(KeyType aKey) {
- _map.remove(aKey);
+ map.remove(aKey);
}
/*
* @see org.wamblee.cache.Cache#clear()
*/
public synchronized void clear() {
- _map.clear();
+ map.clear();
}
}