Designing the future of software.
int maxEntries = 50; java.util.Map lruCache = new java.util.LinkedHashMap(maxEntries, .75F, true) { protected boolean removeEldestEntry(Map.Entry eldest) { return size() > maxEntries } };