public class

LRUMap

extends LinkedHashMap<K, V>
implements Serializable
java.lang.Object
   ↳ java.util.AbstractMap<K, V>
     ↳ java.util.HashMap<K, V>
       ↳ java.util.LinkedHashMap<K, V>
         ↳ org.hibernate.util.LRUMap

Class Overview

A simple LRU cache that implements the Map interface. Instances are not thread-safe and should be synchronized externally, for instance by using synchronizedMap(Map).

Summary

Public Constructors
LRUMap(int maxEntries)
Protected Methods
boolean removeEldestEntry(Entry eldest)
[Expand]
Inherited Methods
From class java.util.LinkedHashMap
From class java.util.HashMap
From class java.util.AbstractMap
From class java.lang.Object
From interface java.util.Map

Public Constructors

public LRUMap (int maxEntries)

Protected Methods

protected boolean removeEldestEntry (Entry eldest)