FileDocCategorySizeDatePackage
BoundedSizeMap.javaAPI DocExample359Mon Nov 13 14:59:00 GMT 2006collections

BoundedSizeMap

public class BoundedSizeMap extends LinkedHashMap

Fields Summary
private int
maxEntries
Constructors Summary
public BoundedSizeMap(int maxEntries)

    super(16, 0.75f, true);
    this.maxEntries = maxEntries;
  
Methods Summary
protected booleanremoveEldestEntry(java.util.Map$Entry eldest)

    return size() > maxEntries;