List of usage examples for org.apache.commons.cache CachedObjectInfo getKey
public Serializable getKey();
From source file:com.adito.replacementproxy.ContentStash.java
public synchronized void clear() { Iterator it = _hash.entrySet().iterator(); while (it.hasNext()) { try {//from ww w .j av a 2s . co m Map.Entry en = (Map.Entry) it.next(); CachedObjectInfo obj = (CachedObjectInfo) en.getValue(); ((File) (obj.getKey())).delete(); } catch (Exception e) { // ignored } } _hash.clear(); _curBytes = 0; }