List of usage examples for org.apache.commons.collections15.map LRUMap LRUMap
public LRUMap(Map<? extends K, ? extends V> map, boolean scanUntilRemovable)
From source file:com.memetix.translate.LRUCache.java
public LRUCache(int maxSize) { //Defaults to Scan Until Removable when LRUMap is Full map = Collections.synchronizedMap(new LRUMap<Object, Object>(maxSize, true)); }
From source file:com.memetix.translate.LRUCache.java
public LRUCache(int maxSize, boolean scanUntilRemovable) { map = Collections.synchronizedMap(new LRUMap<Object, Object>(maxSize, scanUntilRemovable)); }