edu.umd.cs.findbugs.util

Class MapCache<K,V>

public class MapCache<K,V> extends LinkedHashMap<K,V>

Provide a HashMap that can only grow to a specified maximum capacity, with entries discarded using a LRU policy to keep the size of the HashMap within that bound.

Author: pugh

Constructor Summary
MapCache(int maxCapacity)
Create a new MapCache
Method Summary
StringgetStatistics()

Constructor Detail

MapCache

public MapCache(int maxCapacity)
Create a new MapCache

Parameters: maxCapacity - maximum number of entries in the map

Method Detail

getStatistics

public String getStatistics()
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.