File
Doc
Category
Size
Date
Package
BoundedSizeMap.java
API Doc
Example
359
Mon Nov 13 14:59:00 GMT 2006
collections
BoundedSizeMap
java.lang.Object
java.util.AbstractMap
java.util.HashMap
java.util.LinkedHashMap
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
boolean
removeEldestEntry
(
java.util.Map$Entry
eldest)
return size() > maxEntries;
Java Code Source